# Context Drawer

A labeled contextual side panel with controlled visibility, scrollable content, and persistent footer actions.

## Installation

```bash
npx shadcn@latest add https://amro-ui.vercel.app/r/context-drawer.json
```

[Registry JSON](https://amro-ui.vercel.app/r/context-drawer.json)

## Preview

```tsx
import { ContextDrawer } from "@amro-ui/react";

export function Preview() {
  return (
    <div className="grid min-h-72 w-full place-items-center rounded-xl border bg-background p-6 sm:p-10">
      <ContextDrawer />
    </div>
  );
}
```


## Source

### ui/context-drawer.tsx

```tsx
"use client";

import "@/components/amro/amro-ui.css";

export { ContextDrawer } from "@/components/amro/components/shared";
export type { ContextDrawerProps } from "@/components/amro/components/shared";
```



## Usage

A labeled contextual side panel with controlled visibility, scrollable content, and persistent footer actions.

### Package

```tsx
import { ContextDrawer } from "@amro-ui/react";

<ContextDrawer />
```

### shadcn copy

```tsx
import { ContextDrawer } from "@/components/ui/context-drawer";

<ContextDrawer />
```

