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