Drawer
A panel that slides in from the side of the screen.
Add it to your project
Or install the packages yourselfTerminal
npm install @heroui/react
First time with HeroUI? Set it up once.
The code
*/
import {Button, Drawer} from "@heroui/react";
export default function DrawerDemo() {
return (
<Drawer>
<Button variant="secondary">Open Drawer</Button>
<Drawer.Backdrop>
<Drawer.Content placement="right">
<Drawer.Dialog>
<Drawer.Header>
<Drawer.Heading>Drawer Title</Drawer.Heading>This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
Changed for this site: A default export (HeroUI's docs use named ones).