diff --git a/packages/ui/src/components/Drawer.tsx b/packages/ui/src/components/Drawer.tsx index 98258b28..c3bbe991 100644 --- a/packages/ui/src/components/Drawer.tsx +++ b/packages/ui/src/components/Drawer.tsx @@ -10,6 +10,8 @@ import { Button } from "./Button.js"; import { Icon } from "./Icon/Icon.js"; import { UnstyledButton } from "./UnstyledButton.js"; +type DrawerKind = "default" | "floating"; + interface Props { children?: React.ReactNode; onClose?: () => void; @@ -17,6 +19,8 @@ interface Props { closeButton?: boolean; nonDismissable?: boolean; handleBack?: (() => void) | undefined; + padding?: string; + kind?: DrawerKind | undefined; } export const Drawer = (props: Props) => { @@ -103,29 +107,31 @@ export const Drawer = (props: Props) => { grabbing={grabbing} ref={drawerContainerRef} > - {props.grabber && !props.nonDismissable && ( - - - - )} - {props.handleBack && ( - -