Drawer

Slide-in panel from any edge for secondary content and forms.

Preview

Interactive examples use the same @flux/ui build as production. Toggle theme in the header for light and dark. Motion tokens and layout patterns live under Motion and Patterns in the sidebar.

Live preview

Installation

Add the package to your app (full Next.js + Tailwind steps on Installation):

npm install @payglocal_ui/flux-ui

Usage

Import

import {
  Drawer,
  DrawerTrigger,
  DrawerContent,
  DrawerHeader,
  DrawerTitle,
} from "@payglocal_ui/flux-ui";

Example

<Drawer>
  <DrawerTrigger asChild>
    <button type="button">Open drawer</button>
  </DrawerTrigger>
  <DrawerContent>
    <DrawerHeader>
      <DrawerTitle>Filter transactions</DrawerTitle>
    </DrawerHeader>
    <p className="px-4">Content goes here.</p>
  </DrawerContent>
</Drawer>