Textarea FieldTextarea Field
글자 수 표시와 보내기 버튼이 붙은 여러 줄 입력입니다.A multi-line input with a character count and a send button.
입력과 선택Inputs and selection
Solid
0 / 240
0 / 240
0 / 240
Optional
The bot reads this before every task.
0 / 24017 / 240
Add at least 40 characters.
17 / 240Glass
0 / 240
0 / 240
0 / 240
Optional
The bot reads this before every task.
0 / 24017 / 240
Add at least 40 characters.
17 / 240import { TextareaField } from "@horon-ai/react"; function Fields({ surface }: { surface: "solid" | "glass" }) { return ( <div className="flex w-full max-w-96 flex-col gap-4"> <TextareaField className="w-full" surface={surface} size="sm" label="Small" maxLength={240} /> <TextareaField className="w-full" surface={surface} label="Medium" maxLength={240} /> <TextareaField className="w-full" surface={surface} size="lg" label="Large" maxLength={240} /> <TextareaField className="w-full" surface={surface} label="Instructions" hint="Optional" placeholder="Tell the bot how you like your inbox handled" description="The bot reads this before every task." maxLength={240} /> <TextareaField className="w-full" surface={surface} label="Instructions" defaultValue="Skip newsletters." maxLength={240} /> <TextareaField className="w-full" surface={surface} label="Instructions" defaultValue="Skip newsletters." error="Add at least 40 characters." maxLength={240} /> </div> ); } export default function TextareaFieldDemo() { return ( <div className="flex w-full flex-col gap-6"> <div className="flex flex-col gap-3"> <p className="text-caption text-text-secondary">Solid</p> <div className="flex w-full flex-col items-center gap-4"> <Fields surface="solid" /> </div> </div> <div className="flex flex-col gap-3"> <p className="text-caption text-text-secondary">Glass</p> <> <Fields surface="glass" /> </> </div> </div> ); }