InteractionKit

Sheet

A focused modal surface for settings, forms, and small decisions.

Preview

Usage

sheet.tsx
import "useintkit/styles.css";
import { Sheet } from "useintkit";

<Sheet trigger="Open sheet" title="Preferences"
  description="Make it your own.">
  {/* Your content or form */}
</Sheet>

Props

PropTypeDescription
titleReactNodeRequired accessible title.
descriptionReactNodeOptional description of the sheet.
triggerReactNodeTrigger content; pass null to use an external controlled opener.
open / onOpenChangeboolean / functionControl the sheet from your application.
dismissiblebooleanAllow Escape, backdrop, and drag dismissal. Defaults to true.
draggablebooleanEnable handle drag. Defaults to true.
footerReactNodeContent fixed below the scrollable body.

The modal contains focus and restores it on close. Only the handle starts a drag, leaving the body free to scroll.