@material-tailwind/html
Version:
Material Tailwind is an open-source library that uses the power of Tailwind CSS and React to help you build unique web projects faster and easier. The stunning design inspired by Material Design is a bonus!
28 lines (27 loc) • 593 B
TypeScript
/**
* Configuration options for the Collapse component.
*/
export interface CollapseConfig {
/**
* Selector for the icon element to toggle rotation.
* For example, you can pass "[data-icon]" to target specific icons.
*/
iconSelector?: string;
}
/**
* Interface for the Collapse component.
*/
export interface ICollapse {
/**
* Toggles the collapsible content visibility.
*/
toggle(): void;
/**
* Expands the collapsible content.
*/
expand(): void;
/**
* Collapses the collapsible content.
*/
collapse(): void;
}