UNPKG

ds-smart-ui

Version:

Smart UI v1.0.5 — A production-ready React component library by PT Praisindo Teknologi. Covers inputs, navigation, data display, feedback, and layout with a unified design system, semantic Typography tokens, and full Storybook documentation.

37 lines (36 loc) 1.36 kB
import { default as React } from 'react'; export type DrawerAnchor = "left" | "right" | "top" | "bottom"; export interface DrawerProps { /** Whether the drawer is open */ isOpen: boolean; /** Callback function when the drawer should close */ onClose: () => void; /** Position of the drawer */ anchor?: DrawerAnchor; /** Title of the drawer */ title?: string; /** If true, the header (title and close button) will not be shown */ noHeader?: boolean; /** Drawer content */ children?: React.ReactNode; /** Additional CSS class for the drawer container */ className?: string; /** Disable scroll lock when the drawer is open */ disableScrollLock?: boolean; /** If true, removes all padding from the content area */ noPadding?: boolean; /** Close the drawer when the overlay is clicked */ closeOnOverlayClick?: boolean; /** Accessibility ID */ id?: string; /** If true, the drawer width can be adjusted (only for left/right anchors) */ resizable?: boolean; /** Minimum width for the drawer when resizable is true */ minWidth?: number; /** Maximum width for the drawer when resizable is true */ maxWidth?: number; /** Initial width for the drawer */ defaultWidth?: number; } declare const Drawer: React.FC<DrawerProps>; export default Drawer;