# Drawer

Slides supplementary content in from an edge of the viewport. Use it for focused mobile tasks or secondary panels that should preserve page context.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { Drawer, DrawerPortal, DrawerOverlay, DrawerSwipeHandle, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-drawer--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/drawer), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=112-454)

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### Drawer

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `showSwipeHandle` | `boolean` | `false` |  |

Also takes the props of `@base-ui/react/drawer`.

### DrawerPortal

Also takes the props of `@base-ui/react/drawer`.

### DrawerOverlay

Also takes the props of `@base-ui/react/drawer`.

### DrawerSwipeHandle

Also takes the attributes of the HTML element it renders.

### DrawerTrigger

Also takes the props of `@base-ui/react/drawer`.

### DrawerClose

Also takes the props of `@base-ui/react/drawer`.

### DrawerContent

Also takes the props of `@base-ui/react/drawer`.

### DrawerHeader

Also takes the attributes of the HTML element it renders.

### DrawerFooter

Also takes the attributes of the HTML element it renders.

### DrawerTitle

Also takes the props of `@base-ui/react/drawer`.

### DrawerDescription

Also takes the props of `@base-ui/react/drawer`.

## Related

- [Sheet](https://ark.kela.design/product/components/sheet.md)
- [Dialog](https://ark.kela.design/product/components/dialog.md)
