Skip to content

Sheet

The Sheet component is a panel that slides in from an edge of the screen for overlaid content — settings, details, or a focused task off to the side. It’s a compound component built on Radix Dialog, composed from Sheet.Root, Sheet.Trigger, Sheet.Content, and the structural parts Sheet.Header, Sheet.Footer, Sheet.Title, and Sheet.Description.

Variations

Sides

Sheet.Content slides in from the right by default. Set side to left, top, or bottom to change the edge it appears from.

Installation

import { Sheet } from '@harnessio/ui/components'
return (
<Sheet.Root>
<Sheet.Trigger asChild>
<Button>Open Sheet</Button>
</Sheet.Trigger>
<Sheet.Content>
<Sheet.Header>
<Sheet.Title>Sheet Title</Sheet.Title>
<Sheet.Description>This is the sheet description.</Sheet.Description>
</Sheet.Header>
<p>Sheet content goes here.</p>
<Sheet.Footer>
<Button>Footer Action</Button>
</Sheet.Footer>
</Sheet.Content>
</Sheet.Root>
)