Drawer
A drawer component for React.
"use client"
import * as React from "react"
import {
Button,Usage
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "uilab-core"<Dialog>
<DialogTrigger>Open</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Are you absolutely sure?</DialogTitle>
<DialogDescription>
This action cannot be undone. This will permanently delete your account
and remove your data from our servers.
</DialogDescription>
</DialogHeader>
</DialogContent>
</Dialog>Examples
Scrollable content
Keep actions visible while the content scrolls.
import {
Button,
Drawer,
DrawerClose,
DrawerContent,Sides
Use the direction prop to set the side of the drawer. Available options are top, right, bottom, and left.
"use client"
import {
Button,
Drawer,