UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

60 lines 1.9 kB
import { ExtractProps } from '@workday/canvas-kit-react/common'; import { CanvasSystemIcon } from '@workday/design-assets-types'; import { SystemIcon } from '@workday/canvas-kit-react/icon'; import { IconPositions } from '@workday/canvas-kit-react/button'; export interface ExpandableIconProps extends Omit<ExtractProps<typeof SystemIcon, never>, 'icon'> { /** * Icon to display from `@workday/canvas-accent-icons-web` * @default chevronUpIcon */ icon?: CanvasSystemIcon; /** * Button icon positions can either be `start` or `end`. * If no value is provided, it defaults to `start`. * @default 'start' */ iconPosition?: IconPositions; } export declare const expandableIconStencil: import("@workday/canvas-kit-styling").Stencil<{ isExpanded: { true: {}; false: {}; }; position: { start: {}; end: {}; only: {}; }; }, {}, {}, import("@workday/canvas-kit-styling").Stencil<{}, {}, { color: string; accentColor: string; backgroundColor: string; }, import("@workday/canvas-kit-styling").Stencil<{ shouldMirror: { true: { transform: string; }; }; shouldMirrorInRTL: { true: { '&:dir(rtl)': { transform: string; }; }; }; }, {}, { width: string; height: string; size: string; }, never, never>, never>, never>; export declare const ExpandableIcon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", ExpandableIconProps, { state: { id: string; visibility: "hidden" | "visible"; }; events: { show(event?: Event | import("react").SyntheticEvent<Element, Event> | undefined): void; hide(event?: Event | import("react").SyntheticEvent<Element, Event> | undefined): void; }; }>; //# sourceMappingURL=ExpandableIcon.d.ts.map