UNPKG

@workday/canvas-kit-labs-react

Version:

Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functi

29 lines 1.17 kB
import React from 'react'; 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 ExpandableIcon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", ExpandableIconProps, { state: { id: string; visibility: "hidden" | "visible"; }; events: { show(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void; hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void; }; }>; //# sourceMappingURL=ExpandableIcon.d.ts.map