⚡
Documentation & Primitives

Drawer (Sheet)

Slide-out contextual panel from left, right, or bottom with smooth animation.

Interactive Preview

Live

Configuration Sheet

Slide-out sheet configured with position="right".

Component Props

  • openprop
  • onOpenChangeprop
  • positionprop
  • childrenprop
  • classNameprop

Usage Code

TypeScript / JSX
import { useState } from 'react';
import { Drawer, DrawerHeader, DrawerTitle, Button } from '@stackvibe-studio/ui';

export function Example() {
  const [open, setOpen] = useState(false);
  return (
    <>
      <Button onClick={() => setOpen(true)}>Open Drawer</Button>
      <Drawer open={open} onOpenChange={setOpen} position="right">
        <DrawerHeader>
          <DrawerTitle>Workspace Settings</DrawerTitle>
        </DrawerHeader>
        <p>Edit workspace details here.</p>
      </Drawer>
    </>
  );
}