A composable prompt input component with controlled state, and customizable actions.
Reference for all public props available on this component.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | The current input value. |
setValue | (value: string) => void | — | Updates the input value. |
onSubmit | () => void | — | Called when the user submits the prompt. |
isLoading | boolean | false | Displays the loading state and prevents submission. |
children | ReactNode | — | The prompt input content. |
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | Ask me Anything... | Placeholder text displayed when the input is empty. |