UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

26 lines 1.04 kB
import { BorderColorStyleProps } from './color'; import { BorderLineStyleProps } from './lineStyle'; import { BorderRadiusStyleProps } from './radius'; import { BorderShorthandStyleProps } from './shorthand'; import { BorderWidthStyleProps } from './width'; export type BorderStyleProps = BorderColorStyleProps & BorderLineStyleProps & BorderRadiusStyleProps & BorderShorthandStyleProps & BorderWidthStyleProps; /** * A style prop function that takes component props and returns border styles. Some props, such as borderRadius and borderColor, are connected to our design tokens. * If no `BorderStyleProps` are found, it returns an empty object. * * @example * ```tsx * const BorderExample = () => ( * <Box * border="solid 1px" * borderColor="soap500" * borderRadius="l" * > * Hello, border styles! * </Box> * ); *``` */ export declare const border: (props: BorderStyleProps) => {}; export declare const borderStyleFnConfigs: import("../buildStyleFns").StyleFnConfig[]; //# sourceMappingURL=index.d.ts.map