# Shadcn Prompt Input Components

A chat composer for AI apps with an autogrowing textarea, file and image attachments, model and effort pickers, action menus, tool toggles, slash commands and a submit button that switches to stop while a reply streams. Built on AI Elements and shadcn/ui.

- Page: https://shadcnuikit.com/components/prompt-input
- Variants: 10 (10 free, 0 pro)
- Built with shadcn/ui, Tailwind CSS v4, React and Next.js

- [Basic](https://shadcnuikit.com/components/prompt-input/1) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input1`)
- [Submit status](https://shadcnuikit.com/components/prompt-input/2) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input2`)
- [Image attachments](https://shadcnuikit.com/components/prompt-input/3) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input3`)
- [Model and effort pickers](https://shadcnuikit.com/components/prompt-input/4) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input4`)
- [Action menu](https://shadcnuikit.com/components/prompt-input/5) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input5`)
- [Tool toggles](https://shadcnuikit.com/components/prompt-input/6) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input6`)
- [Character limit](https://shadcnuikit.com/components/prompt-input/7) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input7`)
- [With suggestions](https://shadcnuikit.com/components/prompt-input/8) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input8`)
- [Slash commands](https://shadcnuikit.com/components/prompt-input/9) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input9`)
- [Chat composer](https://shadcnuikit.com/components/prompt-input/10) (Free, install: `npx shadcn@latest add @shadcnuikit/prompt-input10`)

## Install with the shadcn CLI

Add the registry to components.json once:

```json
"registries": {
  "@shadcnuikit": {
    "url": "https://shadcnuikit.com/r/{name}.json",
    "headers": {
      "Authorization": "Bearer ${REGISTRY_TOKEN}"
    }
  }
}
```

Then install any item by its registry name, for example `npx shadcn@latest add @shadcnuikit/hero1`. Free items install without an API key. Pro items need a license and an API key from https://shadcnuikit.com/account/api-keys, set as REGISTRY_TOKEN in your .env file.

More from Shadcn UI Kit: [llms.txt](https://shadcnuikit.com/llms.txt)