@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
22 lines • 1.06 kB
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 expandableContentStencil: import("@workday/canvas-kit-styling").Stencil<import("@workday/canvas-kit-styling").StencilModifierConfig<{}, {}, never>, {}, {}, never, never>;
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