Overlays
Sheet
A panel that slides in from the left or right edge of the screen over a scrim.
Group: Overlays. Exports: Sheet. shadcn/ui equivalent: Sheet (partial parity).
Usage
import { Sheet } from "./halaska-kit";
Sheet props
openboolean: Whether the overlay is shown.onClose() => void: Called when the overlay should close.titlestring: Heading text.childrenReactNode: Content.sidestring(default "right"):
Accessibility
- Has the dialog role with aria-modal, and a string title becomes its accessible name.
- Focus moves inside on open, Tab stays inside, and focus returns to the opener on close.
- Closes on Escape, a scrim click or its close button, which is labelled "Close".
- While closed the panel is hidden, so its controls cannot be reached with Tab.
Known gaps
- Left and right sides only, no top or bottom.
- No description or footer parts.
- Width is fixed at 320px.
Halaska UI · Components · Patterns · Screens · Install