@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
18 lines • 813 B
TypeScript
import { CSToPropsInput } from '@workday/canvas-kit-styling';
import { CommonStyleProps } from './styleProps';
/**
* This function has the same signature as {@link handleCsProp} and also calls `handleCsProps`, but
* adds support for style props. It can be used as a drop-in replacement for `handleCsProps`.
*/
export declare function mergeStyles<T extends {}>(
/**
* All the props to be spread onto an element. The `cs` prop will be removed an reduced to
* `className` and `style` props which should be safe on every element.
*/
allProps: T,
/**
* Optional local style created by `createStyles`. Using this parameter, you can style your
* element while supporting proper style merging order.
*/
localCs?: CSToPropsInput): Omit<T, 'cs' | keyof CommonStyleProps>;
//# sourceMappingURL=mergeStyles.d.ts.map