Design System Builder

Sheet

Sheet is a compound component that provides sheet functionality.

Active

Sheet Preview

This is how a sheet would appear

Examples

side

Different side options for the Sheet component.

top

Sheet Preview

This is how a sheet would appear

bottom

Sheet Preview

This is how a sheet would appear

left

Sheet Preview

This is how a sheet would appear

right

Sheet Preview

This is how a sheet would appear

Installation

npm install @your-design-system/sheet
import { Sheet } from "@/components/ui/sheet"

export function SheetDemo() {
  return (
    <Sheet side="right">
      {/* Content */}
    </Sheet>
  )
}

API Reference

PropTypeDefaultDescription
sideenumright

The side prop for the component.

Options: top | right | bottom | left

titlestring-

The title prop for the component.

descriptionstring-

The description prop for the component.

Styling

The component uses Tailwind CSS classes for styling. You can customize the appearance by overriding these classes.

Base Classes

fixedz-50gap-4bg-backgroundp-6shadow-lgtransitionease-in-out

side Variants

top

inset-x-0top-0border-b

bottom

inset-x-0bottom-0border-t

left

inset-y-0left-0h-fullw-3/4border-rsm:max-w-sm

right

inset-y-0right-0h-fullw-3/4border-lsm:max-w-sm

Design System Compliance

This component is validated against atomic design principles and foundation token usage.