Components
Textarea
Use for prompts, long descriptions, and multi-line configuration input
Textarea
Textarea is the multi-line text input primitive.
Import
import { Textarea, Label } from "@downcity/ui";Basic Example
import { Label, Textarea } from "@downcity/ui";
export function PromptField() {
return (
<div className="flex flex-col gap-2">
<Label htmlFor="system-prompt">System Prompt</Label>
<Textarea id="system-prompt" placeholder="Enter the system prompt" />
</div>
);
}Good Fits
- Prompts
- Long descriptions
- Multi-line config snippets
Related Exports
TextareaTextareaProps
Usage Notes
- Use
Textareafor long-form input - Use
Inputfor short single-line fields