A component for rendering a sliding panel that overlays the main content.
In this guide, you'll learn how to use the Drawer component.
Was this example helpful?
Usage#
import { Drawer } from "@medusajs/ui"
1<Drawer>2 <Drawer.Trigger>Trigger</Drawer.Trigger>3 <Drawer.Content>4 <Drawer.Header>5 <Drawer.Title>Drawer Title</Drawer.Title>6 </Drawer.Header>7 <Drawer.Body>Body</Drawer.Body>8 <Drawer.Footer>Footer</Drawer.Footer>9 </Drawer.Content>10</Drawer>
API Reference#
Examples#
This example shows a simple form inside a Drawer, demonstrating how to use form elements and handle submission.
Was this guide helpful?