@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
19 lines • 1.09 kB
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`.
* @deprecated ⚠️ `mergeStyles` is deprecated since it supports style props. Use `handleCsProps` to ensure correct style merging order. For more information view our [docs](https://workday.github.io/canvas-kit/?path=/docs/styling-guides-merging-styles--docs#handlecsprop).
*/
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