Prompt Input

A composable prompt input component with controlled state, and customizable actions.

Installation
CLI
Manual
$pnpm dlx shadcn@latest add https://brainframeui.tech/r/prompt-input.json
API Reference

Reference for all public props available on this component.

PromptInput Props
PropTypeDefaultDescription
valuestringThe current input value.
setValue(value: string) => voidUpdates the input value.
onSubmit() => voidCalled when the user submits the prompt.
isLoadingbooleanfalseDisplays the loading state and prevents submission.
childrenReactNodeThe prompt input content.
promptInputTextArea Props
PropTypeDefaultDescription
placeholderstringAsk me Anything...Placeholder text displayed when the input is empty.