Acronis UIKit
Legacy (shadcn-uikit)Components

Sheet

A panel that slides in from the edge of the screen, used for secondary content or forms.

Usage

import {
  Sheet,
  SheetTrigger,
  SheetContent,
  SheetHeader,
  SheetTitle,
  SheetDescription,
  SheetFooter,
  SheetClose,
} from '@acronis-platform/shadcn-uikit';
<Sheet>
  <SheetTrigger>Open</SheetTrigger>
  <SheetContent>
    <SheetHeader>
      <SheetTitle>Edit profile</SheetTitle>
      <SheetDescription>Make changes to your profile here.</SheetDescription>
    </SheetHeader>
    {/* Form content */}
    <SheetFooter>
      <SheetClose>Cancel</SheetClose>
    </SheetFooter>
  </SheetContent>
</Sheet>

Overview

The Sheet is a dialog variant that slides in from any screen edge. It is built on Base UI's Dialog primitive with animated slide-in/slide-out transitions. The side prop controls which edge the sheet appears from.

API Reference

SheetContent

PropTypeDefaultDescription
side"top" | "bottom" | "left" | "right""right"The edge the sheet slides in from.
portalbooleantrueWhether to render in a portal.
classNamestringAdditional CSS class names.

Compound components

ComponentDescription
SheetRoot component (Base UI Dialog.Root). Controls open/close state.
SheetTriggerButton that opens the sheet (Dialog.Trigger).
SheetContentThe sliding panel. Accepts side and portal props.
SheetHeaderContainer for title and description at the top.
SheetTitleHeading within the sheet (Dialog.Title).
SheetDescriptionDescription text (Dialog.Description).
SheetFooterContainer for actions at the bottom.
SheetCloseButton that closes the sheet (Dialog.Close).
SheetOverlayBackdrop overlay behind the sheet.
Edit on GitHub

On this page