Project details

A little space for your next action. Press Escape or close to return.

Project details

A little space for your next action. Press Escape or close to return.

Project details

A little space for your next action. Press Escape or close to return.

Quick actions

A little space for your next action. Press Escape or close to return.

A modal sheet that opens from any edge, with native focus management and Escape dismissal.

Installation

Add the sheet component from Hangry UI to this project.
Use the project's package manager to run:
shadcn@latest add https://ui.razeev.com/r/sheet.json
Integrate the component with the existing layout and styling.
Keep its interactions and reduced-motion support intact.

How to use

import { Sheet } from "@/components/hangry-ui/components/sheet";
<Sheet side="right" title="Quick actions">
<p>Choose your next step.</p>
</Sheet>;

Props

PropTypeDefaultDescription
side"top" | "right" | "bottom" | "left""bottom"The edge the sheet opens from.
triggerLabelstring"Open sheet"Label of the button that opens the sheet.
titlestring"Make yourself at home"Accessible dialog title.
descriptionstring"A little space for your next action. Press Escape or close to return."Accessible dialog description.
childrenReactNode—Sheet body content.
classNamestring""Additional CSS classes on the component root.

Dependencies

  • lucide-react
  • Motion