@cerberus-design/react
Version:
The Cerberus Design React component library.
35 lines (34 loc) • 888 B
TypeScript
import { ElementType } from 'react';
/**
* This module contains the parts of the Collapsible component.
* @module 'collapsible/parts'
*/
interface CollapsiblePartsValue {
/**
* The context provider of the collapsible.
*/
Root: ElementType;
/**
* The button that toggles the collapsible.
*/
Trigger: ElementType;
/**
* The indicator that shows the state of the collapsible.
*/
Indicator: ElementType;
/**
* The content of the collapsible.
*/
Content: ElementType;
}
/**
* An Object containing the parts of the Collapsible component. For users that
* prefer Object component syntax.
*
* @remarks
*
* When using object component syntax, you import the CollapsibleParts object and
* the entire family of components vs. only what you use.
*/
export declare const Collapsible: CollapsiblePartsValue;
export {};