Reactolith UI Getting Started Introduction Installation Usage Layout Aspect Ratio Card Resizable Scroll Area Separator Direction Provider Forms Button Button Group Calendar Checkbox Combobox Field Input Input Group Input OTP Label Native Select Radio Group Select Slider Switch Textarea Toggle Toggle Group Data Display Accordion Avatar Badge Carousel Chart Collapsible Item Kbd Table Feedback Alert Empty Progress Skeleton Sonner Spinner Overlay Alert Dialog Context Menu Dialog Dropdown Menu Hover Card Popover Sheet Tooltip Navigation Breadcrumb Command Menubar Navigation Menu Pagination Sidebar Tabs

Sheet

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

Preview

Open Sheet Edit Profile Make changes to your profile. Click save when done.
Name
Cancel Save

Usage

<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>

Sub-components

<ui-sheet> <ui-sheet-trigger> <ui-sheet-content> <ui-sheet-header> <ui-sheet-title> <ui-sheet-description> <ui-sheet-footer> <ui-sheet-close>

Props

<ui-sheet>

PropTypeDefaultDescription
openbooleanControlled open state.

<ui-sheet-content>

PropTypeDefaultDescription
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.