Skip to content

Components

Sheet

A modal side panel for navigation, filters and project details.

Customize
Ombelle · light

Installation

Run in a project initialized with an Ombelle preset (see Get started). The component uses the saved project preset. Run the command from your app folder; it shows the changes and asks before writing.

pnpm dlx @ombelle-ui/cli@1.1.2 add sheet

Adds components/ui/sheet.tsx and installs react, @radix-ui/react-dialog, clsx, tailwind-merge, lucide-react with lifecycle scripts disabled. This is a client component.

In a liquid glass project the plan adds a notice that accessibility is not guaranteed, because text contrast depends on the background behind the glass.

Usage

example.tsx
import { Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle, SheetDescription } from '@/components/ui/sheet'
export function Example(){return <Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent side="inline-end"><SheetHeader><SheetTitle>Project details</SheetTitle><SheetDescription>Review the current project.</SheetDescription></SheetHeader><p>Your project is ready to review.</p></SheetContent></Sheet>}

API and states

API
Sheet, SheetTrigger, SheetClose, SheetContent (side, size, resizable, defaultSize, minSize, maxSize, onSizeChange, snapPoints for bottom sheets), SheetHandle, SheetHeader, SheetFooter, SheetTitle, SheetDescription
Minimum states
Open, closed, scroll, focus return, RTL, bottom drawer resized or closed by its handle, side panel resized
Native basis
Reviewed Dialog primitive with logical edge positioning
Styles
Stable in Ombelle, Papier, Organic, Retro futurism, minimalist, neo-brutalism and flat, light and dark. Liquid glass: stable, accessibility not guaranteed.