Sheet
An edge-docked slide-over sheet supporting right, left, top, and bottom sides with smooth easing, backdrop blur, focus trap, and Escape dismissal.
Customize
Installation
npx shadcn@latest add @kinetic/sheetUsage
import {
Sheet,
SheetClose,
SheetContent,
SheetDescription,
SheetFooter,
SheetHeader,
SheetTitle,
SheetTrigger,
} from "@/components/kinetic/ui/sheet";
export function EditProfile() {
return (
<Sheet>
<SheetTrigger>Edit profile</SheetTrigger>
<SheetContent>
<SheetHeader>
<SheetTitle>Edit profile</SheetTitle>
<SheetDescription>Update your details below.</SheetDescription>
</SheetHeader>
<SheetFooter>
<SheetClose>Close</SheetClose>
</SheetFooter>
</SheetContent>
</Sheet>
);
}Sides
Set side on SheetContent to right (default), left, top, or bottom.
<SheetContent side="left">...</SheetContent>
<SheetContent side="bottom">...</SheetContent>Controlled state
Pass open and onOpenChange to control the sheet, or defaultOpen for an uncontrolled initial state.
<Sheet open={open} onOpenChange={setOpen}>
...
</Sheet>Close button
SheetContent shows a close button by default. Set showCloseButton={false} to hide it and provide your own SheetClose.
<SheetContent showCloseButton={false}>...</SheetContent>Speed and blur
speed scales the animation, blurPx sets the panel blur during motion, and backdropBlurPx sets the backdrop blur. They can be set on Sheet and overridden on SheetContent.
<Sheet speed={1.25} backdropBlurPx={6}>...</Sheet>Motion preferences
With reduced motion enabled, the sheet uses a short fade instead of sliding from the edge. Animation timing follows the current Kinetic tempo. Focus is trapped while open, Escape closes the sheet, and focus returns to the trigger.
API Reference
Sheet
Zero-dependency root managing sheet open state, animation speed, and backdrop blur.
| Prop | Type | Default | Description |
|---|---|---|---|
open / defaultOpen / onOpenChange | boolean / (open: boolean) => void | - | Controlled or uncontrolled open state. |
speed | number | 1 | Animation speed multiplier (0.25 to 4). |
backdropBlurPx | number | 4 | Backdrop blur radius in pixels (0 to 20). |
SheetContent
Edge-docked portaled surface with smooth drawer easing, focus trapping, and close button.
| Prop | Type | Default | Description |
|---|---|---|---|
side | "right" | "left" | "top" | "bottom" | "right" | Viewport edge from which the sheet slides in. |
showCloseButton | boolean | true | Renders the top-right dismiss button. |
speed / backdropBlurPx | number | - | Optional overrides for root speed and backdrop blur. |