# Sheet · JGuang UI

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

- Page: https://jiguang132.com/systems/jguang-ui/docs/components/base/sheet
- Based on: shadcn/ui documentation (MIT) @ bc0705384b51252af26dcc65425b216bf5eb063c

> Example `sheet-demo`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/sheet


## Installation


  

**Command**


  

**Manual**


```text
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
```


### Install the following dependencies:


```bash
npm install @base-ui/react
```


### Copy and paste the following code into your project.


[View complete source: components/ui/sheet.tsx](/r/jguang-ui/base/sheet.json)


### Update the import paths to match your project setup.


## Usage

```tsx showLineNumbers
import {
  Sheet,
  SheetClose,
  SheetContent,
  SheetDescription,
  SheetFooter,
  SheetHeader,
  SheetTitle,
  SheetTrigger,
} from "@/components/ui/sheet"
```

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

## Composition

Use the following composition to build a `Sheet`:

```text
Sheet
├── SheetTrigger
└── SheetContent
    ├── SheetHeader
    │   ├── SheetTitle
    │   └── SheetDescription
    └── SheetFooter
```

## Side

Use the `side` prop on `SheetContent` to set the edge of the screen where the sheet appears. Values are `top`, `right`, `bottom`, or `left`.


> Example `sheet-side`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/sheet


## No Close Button

Use `showCloseButton={false}` on `SheetContent` to hide the close button.


> Example `sheet-no-close-button`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/sheet


## RTL

To enable RTL support in JGuang UI, see the [RTL configuration guide](/systems/jguang-ui/docs/rtl).


> Example `sheet-rtl`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/sheet


## API Reference

See the [Base UI Dialog](https://base-ui.com/react/components/dialog#api-reference) documentation.

---

Index of all JGuang resources: https://jiguang132.com/llms.txt
