@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
21 lines • 864 B
TypeScript
import React from 'react';
import { ExtractProps } from '@workday/canvas-kit-react/common';
import { Box } from '@workday/canvas-kit-react/layout';
export interface ExpandableContentProps extends ExtractProps<typeof Box, never> {
/**
* The children of the `Expandable.Content` whose visibility is controlled by the associated
* `Expandable.Target`
*/
children?: React.ReactNode;
}
export declare const ExpandableContent: import("@workday/canvas-kit-react/common").ElementComponentM<"div", ExpandableContentProps, {
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=ExpandableContent.d.ts.map