Text input
AI prompt
A blank prompt is the hardest input in software - the field accepts anything, so it suggests nothing, and a first-time user stalls. This component answers that in three layers. The field itself is stripped to a caret on a surface, with no border to box the sentence in. The options sit on the same baseline as the send control, so they read as part of the sentence rather than as a toolbar above it. And the examples underneath are the actual fix for the blank page: one click writes a real prompt into the field, and the whole block collapses once it is no longer needed.
npx shadcn@latest add @minflow/ai-promptWhere to use it
- The empty state of any assistant, copilot, or chat surface, where the first message is the hardest one.
- Command surfaces where the model needs scoping - which skill, which context - before the message is worth sending.
- Reach for Chat instead once a conversation exists; this is the front door, not the room.
Variations
With examples
The default, and the right choice for any first run. The examples are dismissible, so they stop costing space the moment somebody knows what to type.
Scoped by options
When the same prompt means different things depending on the tool or the context it runs against. Each option is a menu, and the chosen value replaces the label so the scope is readable at rest.
Bare field
Returning users, and anywhere the prompt sits inside a surface that already explains itself. The rotating placeholder is doing the suggesting instead.