UNPKG

@nexusui/components

Version:

These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.

21 lines (20 loc) 729 B
import { DrawerProps } from '@mui/material/Drawer'; import { CSSProperties } from 'react'; import { IDrawerContextProps } from './type'; export interface IDrawer extends DrawerProps, IDrawerContextProps { /** * Width of the Drawer component. * @default '320px' */ width?: CSSProperties['width']; /** * The variant to use. * @default 'persistent' */ variant?: DrawerProps['variant']; /** * Callback fired when a node is expanded/collapsed. This function returns an array of all currently expanded nodes' ids. */ onNavItemExpanded?: (itemIds: ReadonlyArray<string>) => void; } export declare const Drawer: (props: IDrawer) => import("react/jsx-runtime").JSX.Element;