# Branching Reasoning AI Chat Input

> Branching Reasoning AI Chat Input for React and Tailwind CSS (shadcn/ui) compares approaches. It is built to make a chosen approach clear. Fanned cards, score bars, a 520ms merge, streaming text, and expandable alternatives support controlled state and controlled or local drafts. Includes keyboard access, reduced motion, and light/dark themes. Use it for AI chat, assistants, or SaaS. The included demo simulates sample scores and an answer; the component makes no requests. Requires React and lucide-react, with no animation library.

- Author: [DHxWhy](https://21st.dev/@dhxwhy)
- License: mit
- Tags: AI Chat, AI, Chat, Form, SaaS
- npm dependencies: lucide-react
- Live preview: https://21st.dev/@dhxwhy/components/branching-reasoning-chat-input

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/dhxwhy/branching-reasoning-chat-input?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-chat.md
