BetaPublic beta — Read the release notes
Documentation

Sheet

Side-panel dialog with slide animation.

Package
@solidiom/sheet
Version
0.0.1-next.0
Status
stable

Preview

This preview uses documentation-only styling. Ship with one of the included recipe outputs (CSS, Tailwind, or UnoCSS) for production styles.

Side-panel dialog with slide animation.

Usage

Compose Root, Trigger, Portal, Backdrop, Content, Title, Description, Close.

import * as Sheet from "@solidiom/sheet"

;<Sheet.Root>Sheet content</Sheet.Root>

Installation

Install the package with pnpm add @solidiom/sheet. The package requires compatible solid-js and @solidjs/web peer dependencies.

Parts

Sheet exposes 8 parts:

  • Rootdata-part="root".
  • Triggerdata-part="trigger".
  • Portaldata-part="portal".
  • Backdropdata-part="backdrop".
  • Contentdata-part="content".
  • Titledata-part="title".
  • Descriptiondata-part="description".
  • Closedata-part="close".

Styling

Sheet carries data-scope="sheet" and data-part attributes on each part for CSS/recipe targeting. State attributes like data-state, data-disabled, and data-highlighted are exposed where applicable.

Keyboard & behavior

KeyBehavior
EscapeCloses the sheet and returns focus to the trigger.
TabMoves focus within the sheet content (focus trapped).

Composition

Sheet is designed to compose with other primitives. Its parts can be combined with Field, Button, or other primitives as needed.

SSR and hydration

Sheet renders as semantic HTML during server rendering. Interactive behavior (keyboard handlers, state management) activates on hydration without layout shift.