csx
Version:
Utility functions for TypeStyle
7 lines (6 loc) • 413 B
TypeScript
import { CsxBackgroundOptions } from './types';
/**
* Creates a `background` shorthand value. You can supply multiple backgrounds, but the `background-color` can only be defined on the last background, as there is only one background color for an element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background
*/
export declare function background(...backgrounds: CsxBackgroundOptions[]): string;