@engie-group/fluid-design-system
Version:
The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.
22 lines (21 loc) • 728 B
TypeScript
export type SidebarProperties = {
/**
* Whether the sidebar should be collapsed initially.
*
* This is only used when the sidebar is not controlled by its parent (see. collapsed property).
*/
initialCollapsed?: boolean;
/**
* Whether the sidebar should be collapsed.
*
* When this property is provided, the sidebar collapsed state will be controlled by its parent.
*/
collapsed?: boolean;
/**
* Callback when the sidebar collapsed state changes.
*
* This is only called when the sidebar is not controlled by its parent (see. collapsed property).
* @param collapsed The new collapsed state.
*/
onCollapse?: (collapsed: boolean) => void;
};