47 lines
813 B
Plaintext
47 lines
813 B
Plaintext
---
|
|
title: Drawer
|
|
description: A component that can slide in from any side of the screen.
|
|
lastUpdated: 21 Aug, 2025
|
|
links:
|
|
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Command.tsx
|
|
---
|
|
|
|
<ComponentShowcase name="drawer-style-default" />
|
|
<br />
|
|
<br />
|
|
|
|
<ComponentInstall>
|
|
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/drawer" />
|
|
<ComponentInstall.Manual>
|
|
#### 1. Install dependencies:
|
|
|
|
```sh
|
|
npm install vaul
|
|
```
|
|
|
|
<br />
|
|
|
|
#### 2. Copy the code 👇 into your project:
|
|
|
|
<ComponentSource name="drawer" />
|
|
|
|
</ComponentInstall.Manual>
|
|
</ComponentInstall>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
## Examples
|
|
|
|
### Default
|
|
|
|
<ComponentShowcase name="drawer-style-default" />
|
|
<br />
|
|
<br />
|
|
|
|
### Different Direction
|
|
|
|
<ComponentShowcase name="drawer-style-right-direction" />
|
|
<br />
|
|
<br />
|