@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
29 lines • 1.5 kB
TypeScript
import React from 'react';
import { ExtractProps } from '@workday/canvas-kit-react/common';
import { Flex } from '@workday/canvas-kit-react/layout';
export interface ExpandableTargetProps extends ExtractProps<typeof Flex, never> {
/**
* Children of the `Expandable.Target`. Should contain `Target.Title`, an optional `Target.Avatar`
* and `Target.Icon` with an `iconPosition` prop that takes a value of either `start` or `end`.
* `Target.Icon` with `start` is meant to be placed before the `Target.Title` and `Target.Icon`
* `end` should be placed after.
*/
children: React.ReactNode;
/**
* This specifies the semantic heading level that will wrap the `Expandable.Target`'s button. If not
* defined, then nothing will wrap the button.
*/
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
}
export declare const expandableTargetStencil: import("@workday/canvas-kit-styling").Stencil<import("@workday/canvas-kit-styling").StencilModifierConfig<{}, {}, never>, {}, {}, never, never>;
export declare const ExpandableTarget: import("@workday/canvas-kit-react/common").ElementComponentM<"button", ExpandableTargetProps, {
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=ExpandableTarget.d.ts.map