Skip to main content
VelinStyle v1.3.0
⌂ Home
  1. Docs
  2. Components
  3. Overlays
  4. Sheet

Sheet 1.2.2

<velin-sheet> is a bottom sheet dialog with focus trap and scroll lock. In 1.2.0, open/close uses focus-manager for background inert and body overflow locking. Deutsch: Sheet De

Maturity: Documented as stable in VelinStyle 1.2.0. Design Intelligence (plan / review / agent meta) is separate and beta / foundation where noted.

When to use

When not

Example

Sheet body content.

<button type="button" class="velin-btn velin-btn--primary"
        onclick="document.getElementById('sheet').open()">
  Open sheet
</button>

<velin-sheet id="sheet" title="Settings">
  <p>Content</p>
</velin-sheet>

Accessibility

Dark, responsive, motion, RTL

API

Attributes

AttributeTypeDescription
openBooleanObserved — presence opens the sheet
titleStringHeader title (preferred)
labelStringFallback title when title is empty

Methods, events, parts

APIDescription
open() / close()Toggle; close() fires velin-close
velin-closeBubbling close event
Partsoverlay, sheet, header, body, close
Default slotSheet body

CSS variables

VariableDescription
--velin-color-overlayBackdrop
--velin-color-surface-brightSheet background
--velin-radius-lgTop corner radius
--velin-shadow-xlSheet shadow
--velin-z-overlay / --velin-z-modalBackdrop / sheet stacking

Best practices & pitfalls

Import

Load the components bundle once, then use the custom element:

<script src="../../dist/velinstyle-components.iife.js"></script>
<velin-sheet title="Settings">…</velin-sheet>