Ai Prompt Input
A production-scale, light + dark Ai Prompt Input component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add ai-prompt-inputLive preview available in the gallery.
Usage
import { AIPromptInput } from "@lerpa/ui";
<AIPromptInput />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| placeholder | string | — | |
| accent | string | — | |
| model | string | — | |
| tools | string[] | — | |
| showTools | boolean | — | |
| onSubmit | (text: string, opts: { model: string | — | |
| tools | string[] }) => void | - |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.