# AI Prompt Input Box

> AI prompt input box for app builders and chat products: a liquid-glass composer with a typing placeholder, platform chips, a keyboard-friendly model menu, file attachments and a breathing send button. Enter sends; an optional demo build log then morphs into a preview card. Wire onSubmit to your own generator.

- Author: [Kedhareswer Naidu](https://21st.dev/@kedhareswer)
- Library: [Mosaic Kit](https://21st.dev/@kedhareswer/library/mosaic-kit)
- License: mit
- Tags: AI, AI Chat, Glassmorphism, Input, Prompt
- npm dependencies: gsap
- Live preview: https://21st.dev/@kedhareswer/components/prompt-composer

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/kedhareswer/prompt-composer?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 · More like this: https://21st.dev/community/components/s/ai.md
