Extends the Dialog component to display content that complements the main content.
<ui-sheet>
<ui-sheet-trigger>Open Sheet</ui-sheet-trigger>
<ui-sheet-content>
<ui-sheet-header>
<ui-sheet-title>Edit Profile</ui-sheet-title>
<ui-sheet-description>Make changes to your profile. Click save when done.</ui-sheet-description>
</ui-sheet-header>
<div class="space-y-4 px-4 py-4">
<div class="space-y-2">
<ui-label>Name</ui-label>
<ui-input placeholder="Your name"></ui-input>
</div>
</div>
<ui-sheet-footer>
<ui-sheet-close>Cancel</ui-sheet-close>
<ui-button>Save</ui-button>
</ui-sheet-footer>
</ui-sheet-content>
</ui-sheet>
<ui-sheet> <ui-sheet-trigger> <ui-sheet-content> <ui-sheet-header> <ui-sheet-title> <ui-sheet-description> <ui-sheet-footer> <ui-sheet-close>
<ui-sheet>| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | — | Controlled open state. |
<ui-sheet-content>| Prop | Type | Default | Description |
|---|---|---|---|
side | "top" | "right" | "bottom" | "left" | "right" | The side the sheet slides in from. |
All components also accept standard HTML attributes (class, id, style, data-*, aria-*, etc.) which are passed through to the underlying element.