# Drawer Inner Content

> This component demonstrates a reusable drawer system that can slide in from any direction — top, right, bottom, or left. Instead of duplicating content for each drawer, a shared DrawerInnerContent component is created and reused across all four drawers. The content includes a newsletter signup form with an email input, a subscribe button, and a cancel button. This approach keeps the code clean, consistent, and easy to maintain, while providing users with a flexible way to interact with drawers from different sides of the screen.

- Author: [Ruixen UI](https://21st.dev/@ruixen.ui)
- Library: [Ruixen UI](https://21st.dev/@ruixen.ui/library/ruixen-ui)
- License: unknown
- Live preview: https://21st.dev/@ruixen.ui/components/drawer-inner-content

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/ruixen.ui/drawer-inner-content?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
