@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
61 lines • 2.43 kB
TypeScript
import { Property } from 'csstype';
import { StyleFnConfig } from './buildStyleFns';
import { SystemPropValues } from './systemProps';
/** style props to set CSS background properties
* @deprecated
*/
export type BackgroundStyleProps = {
/**
* - sets [CSS background property](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
* - system tokens: `color`
* @deprecated Use `cs` prop with `system.color.bg.*` tokens
*/
background?: SystemPropValues['color'];
/** sets [CSS background-attachment property](https://developer.mozilla.org/en-US/docs/Web/CSS/)
* @deprecated
*/
backgroundAttachment?: Property.BackgroundAttachment;
/**
* - sets [CSS background-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color)
* - system tokens: `color`
* @deprecated Use `cs` prop with `system.color.bg.*` tokens
*/
backgroundColor?: SystemPropValues['color'];
/** sets [CSS background-image property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image)
* @deprecated
*/
backgroundImage?: Property.BackgroundImage;
/** sets [CSS background-position property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position)
* @deprecated
*/
backgroundPosition?: Property.BackgroundPosition;
/** sets [CSS background-repeat property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat)
* @deprecated
*/
backgroundRepeat?: Property.BackgroundRepeat;
/** sets [CSS background-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)
* @deprecated
*/
backgroundSize?: Property.BackgroundSize;
};
/** @deprecated */
export declare const backgroundStyleFnConfigs: StyleFnConfig[];
/** @deprecated */
export declare const backgroundFns: import("./buildStyleFns").StyleFns;
/**
* A style prop function that takes component props and returns border styles.
* Some props, such as background and backgroundColor, are connected to our design tokens.
* If no `BackgroundStyleProps` are found, it returns an empty object.
*
* @example
* ```tsx
* const BackgroundExample = () => (
* <Box backgroundColor="blueberry500">
* Hello, background styles!
* </Box>
* );
*```
@deprecated
*/
export declare const background: (props: BackgroundStyleProps) => {};
//# sourceMappingURL=background.d.ts.map