ZaidanHomeDocsComponentsBlocksChartsTypesetCreate

Command Palette

Search for a command to run...

GitHub
New
Sections
  • Introduction
  • Components
  • Blocks
  • Installation
  • Customization
  • Dark Mode
  • Typeset
  • Zaidan Skills
  • FAQ
  • Roadmap
  • Changelog
Installation
  • Astro
  • Manual
  • Solid Start
  • TanStack Router
  • TanStack Start
  • Vite
Blocks
  • Data Grid
  • Event Calendar
  • Filters
  • Gantt
  • Image Crop
  • Kanban
  • Message Scroller
  • Questionnaire
  • Sortable
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Aspect Ratio
  • Attachment
  • Avatar
  • Badge
  • Breadcrumb
  • Bubble
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Context Menu
  • Dialog
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Hover Card
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kbd
  • Label
  • Marker
  • Menubar
  • Message
  • Native Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Scroll Area
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Spinner
  • Switch
  • Table
  • Tabs
  • Textarea
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip

Sheet

Extends the Dialog component to display content that complements the main content of the screen.

Kobalte
Kobalte

The Sheet component is built on top of Kobalte Dialog, which provides accessible modal, focus-management, and keyboard behavior.

Installation

pnpm dlx shadcn@latest add @zaidan/sheet
npx shadcn@latest add @zaidan/sheet
yarn dlx shadcn@latest add @zaidan/sheet
bunx --bun shadcn@latest add @zaidan/sheet

Usage

1
import {
2
Sheet,
3
SheetClose,
4
SheetContent,
5
SheetDescription,
6
SheetFooter,
7
SheetHeader,
8
SheetTitle,
9
SheetTrigger,
10
} from "~/components/ui/sheet";
1
<Sheet>
2
<SheetTrigger>Open</SheetTrigger>
3
<SheetContent>
4
<SheetHeader>
5
<SheetTitle>Are you absolutely sure?</SheetTitle>
6
<SheetDescription>This action cannot be undone.</SheetDescription>
7
</SheetHeader>
8
</SheetContent>
9
</Sheet>

Composition

Use the following composition to build a Sheet:

Sheet
├── SheetTrigger
└── SheetContent
├── SheetHeader
│ ├── SheetTitle
│ └── SheetDescription
└── SheetFooter

Side

Use the side prop on SheetContent to set the edge of the screen where the sheet appears. Values are top, right, bottom, or left.

No Close Button

Use showCloseButton={false} on SheetContent to hide the close button.

API Reference

For all primitive props and keyboard interactions, see the Kobalte Dialog API reference.

On This Page

  • Installation
  • Usage
  • Composition
  • Side
  • No Close Button
  • API Reference
Built by Kevin Abatan. The source code is available on GitHub.