@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
28 lines • 1.31 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 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