Sheet

Extends the Dialog component to display content that complements the main content of the screen.

Preview

Installation

npm install @matrix-ui/components

Usage

import {
  Sheet,
  SheetContent,
  SheetDescription,
  SheetHeader,
  SheetTitle,
  SheetTrigger,
} from '@matrix-ui/components'

<Sheet>
  <SheetTrigger>Open</SheetTrigger>
  <SheetContent>
    <SheetHeader>
      <SheetTitle>Are you sure?</SheetTitle>
      <SheetDescription>
        This action cannot be undone.
      </SheetDescription>
    </SheetHeader>
  </SheetContent>
</Sheet>

Examples

Side Variants

Use the side property to control the position of the sheet.

Navigation Menu

Settings Panel