Overview
Copy
import { Textarea } from "@camome/core/Textarea";
export default function Default() { return <Textarea label="Name" rows={3} placeholder="Type something..." />;}
Required
Copy
import { Textarea } from "@camome/core/Textarea";
export default function Required() { return ( <Textarea label="Name" rows={3} required placeholder="Type something..." /> );}
Fill
Copy
import { Textarea } from "@camome/core/Textarea";
export default function Fill() { return ( <Textarea label="Name" rows={3} placeholder="Type something..." fill /> );}
Fill.parameters = { layout: "padded",};
Description
Copy
import { Textarea } from "@camome/core/Textarea";
export default function Description() { return ( <Textarea label="Name" description="Description text" rows={3} placeholder="Type something..." /> );}
Error
Copy
import { Textarea } from "@camome/core/Textarea";
export default function Error() { return ( <Textarea rows={3} placeholder="Type something..." label="Message" error="Something is wrong" /> );}
Disabled
Copy
import { Textarea } from "@camome/core/Textarea";
export default function Disabled() { return ( <Textarea label="Name" rows={3} placeholder="Type something..." disabled /> );}