\n {direction === \"bottom\" ? (\n
\n ) : null}\n\n {title || showCloseButton ? (\n
\n \n {title ?? \"Drawer\"}\n \n {showCloseButton ? (\n }\n htmlType=\"button\"\n onClick={() => onOpenChange(false)}\n aria-label=\"Close drawer\"\n className=\"!h-8 !w-8 !rounded-md !border !border-slate-200 !text-slate-500 hover:!bg-slate-50 hover:!text-slate-800\"\n />\n ) : null}\n
\n ) : null}\n\n
{renderedContent}
\n
\n