liber-salti
Version:
Saltí - Liber Design System
28 lines (27 loc) • 618 B
TypeScript
/// <reference types="react" />
export interface DrawerProps {
/**
* The state of the component
*/
open: boolean;
/**
* The callback of the close action
*/
onClose?: () => void;
/**
* The variant of the component
*/
variant?: 'persistent' | 'temporary';
/**
* The anchor position of the component
*/
anchor?: 'bottom' | 'left' | 'right';
/**
* The children of the component
*/
children?: React.ReactNode;
/**
* Top margin to be used when left and persistent
*/
marginTop?: number;
}