Sheet
Side panel
A panel from the edge of the screen that keeps the page's context — a cart, filters, a detail pane, navigation on phones. From the bottom on phones, see Drawer.
Basic
- A native
<dialog>like Modal: inert page, Tab trapped, Esc closes, focus returns.titleor#titlenames it. dismissible(default) lets Esc, the backdrop and (withhandle) a swipe down close it; off, only your own control does.sidepicks the edge;sizeits width or height.
Usage
ts
import { BlessSheet } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
side | "top" | "bottom" | "left" | "right" | "right" | |
title | string | — | |
size | string | — | |
dismissible | boolean | true | |
closeLabel | string | "Close" | |
handle | boolean | — | bottom drawer: show drag handle and allow swipe-down to close |
modelValue | boolean | false |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: boolean] | |
close | [] |
Slots
| Name | Scope | Description |
|---|---|---|
title | — | |
default | — | |
footer | — |