Forms
Prompt Input
A composer for AI features: @ inserts a file, / inserts a command.
src/components/ui/prompt-input.tsxBehavior from @ui-sdk/react/token-input
A prompt with tokens
Import
tsx
import { PromptInput } from "@/components/ui/prompt-input";Guidelines
- Enter sends and Shift+Enter adds a line, except while the suggestion menu is open.