Sheet
Category: Overlays
<SheetTrigger> <Button>Filters</Button> <Sheet side="end" title="Filters"> {/* form */} </Sheet></SheetTrigger>Install: @helix-ui/core
import { Sheet, SheetTrigger } from '@helix-ui/core';status: stable · since: 0.1.0
Tags: drawer, side-panel, mobile, modal
Anatomy
Section titled “Anatomy”┌─ overlay ────────────────────┐│ ┌─ Sheet (side=start) ──┐ ││ │ content │ │ ← slides in from left/right/top/bottom│ │ │ ││ └───────────────────────┘ │└──────────────────────────────┘Layout
Section titled “Layout”- display —
portal - width —
content - height —
fill - intrinsicSize —
fills 1 dimension; size byside`` - stackable —
false - fullBleed —
true
Visual
Section titled “Visual”A panel that slides in from the chosen edge over a dimmed overlay. Common sides are start (drawer), end (right inspector), bottom (mobile filters).
| Name | Type | Default | Description |
|---|---|---|---|
side |
'start' | 'end' | 'top' | 'bottom' |
end |
Edge the sheet enters from. |
title |
ReactNode |
— | Sheet title. |
description |
ReactNode |
— | Lead paragraph. |
isDismissable |
boolean |
true |
Close via overlay click and Escape. |
isOpen |
boolean |
— | Controlled open state. |
defaultOpen |
boolean |
false |
Uncontrolled initial open. |
onOpenChange |
(open: boolean) => void |
— | Open change handler. |
- SheetTrigger child — the trigger button
- Sheet children — render-prop receives
{ close }
Tokens used
Section titled “Tokens used”color.bg.surface.default, color.text.primary, color.text.secondary, radius.xl, space.4, space.6, font.family.sans, font.size.sm, font.size.xl, font.weight.semibold, shadow.lg
Accessibility
Section titled “Accessibility”Role: dialog
Notes
- Same focus trapping and dismiss semantics as Dialog. The visual difference is the slide-in animation from a screen edge.
- On
bottomandtopsides, the sheet has rounded corners only on the entering edge.
Composes with
Section titled “Composes with”| Component | Relation | Note |
|---|---|---|
Sidebar |
child |
Used as the mobile drawer body. |
Dialog |
alternative |
Dialog for centered tasks; Sheet for edge-anchored. |
ActionSheet |
alternative |
ActionSheet is the iOS-style action menu. |
Popover |
sibling |
Prompt examples
Section titled “Prompt examples”These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.
mobile sidebar drawer
Section titled “mobile sidebar drawer”“left drawer with the main nav”
<Sheet side="start" isOpen={open} onOpenChange={setOpen}> <Sidebar>...</Sidebar></Sheet>filter panel
Section titled “filter panel”“right side filter sheet”
<SheetTrigger> <Button>Filter</Button> <Sheet side="end">…</Sheet></SheetTrigger>