@naturacosmeticos/natds-react
Version:
A collection of components from Natura Design System for React
35 lines (34 loc) • 802 B
TypeScript
/// <reference types="react" />
export declare type DrawerSize = 'small' | 'medium' | 'large';
export declare type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
export interface DrawerProps {
/**
* The content of Drawer
*/
children: React.ReactNode;
/**
* Override or extend the styles applied to the component
*/
className?: string;
/**
* Whether the Drawer is opened or not
*/
open: boolean;
/**
* Whether the Drawer is opened use to close in overlay
*/
handleClick?: () => void;
/**
* The Drawer's width size
* @default small
*/
size?: DrawerSize;
/**
* Optional ID for testing
*/
testID?: string;
/**
* Optional position prop
*/
position?: DrawerPosition;
}