Epicenter
Local-first, open source apps
Installation
Copy and paste the following code into your project.
Usage
<script lang="ts">
import { Textarea } from "$lib/components/ui/textarea/index.js";
</script> <Textarea /> Field
Use Field.Field, Field.Label, and Field.Description to create a textarea with a label and description.
Enter your message below.
Disabled
Use the disabled prop to disable the textarea. To style the disabled state, add the data-disabled attribute to the Field.Field component.
Invalid
Use the aria-invalid prop to mark the textarea as invalid. To style the invalid state, add the data-invalid attribute to the Field.Field component.
Please enter a valid message.
Button
Pair with Button to create a textarea with a submit button.