Componentes

Drawer

Painel deslizante (mobile-first) para ações ou filtros.

Sobreposições e menus

Carregando demonstração…

Código da demo
"use client";

import { Button } from "@/components/ui/button";
import {
  Drawer,
  DrawerClose,
  DrawerContent,
  DrawerDescription,
  DrawerFooter,
  DrawerHeader,
  DrawerTitle,
  DrawerTrigger,
} from "@/components/ui/drawer";

export function Demo() {
  return (
    <Drawer>
      <DrawerTrigger asChild>
        <Button variant="outline">Abrir drawer</Button>
      </DrawerTrigger>
      <DrawerContent>
        <DrawerHeader>
          <DrawerTitle>Filtros</DrawerTitle>
          <DrawerDescription>
            Painel deslizante — feche com Esc ou o botão.
          </DrawerDescription>
        </DrawerHeader>
        <div className="px-fe-4 fe-body text-muted-foreground">Conteúdo de exemplo.</div>
        <DrawerFooter>
          <DrawerClose asChild>
            <Button variant="outline">Fechar</Button>
          </DrawerClose>
        </DrawerFooter>
      </DrawerContent>
    </Drawer>
  );
}
Acessibilidade
Title/description; gestos e Esc fecham; foco no painel.
Importar
import { Drawer, DrawerTrigger, DrawerContent } from "@financeequity/ui/drawer"

Neste repositório:

import { Drawer, DrawerTrigger, DrawerContent } from "@/components/ui/drawer"
Dependências
vaul