API
Usage and API reference
CwTextArea is the multi-line counterpart to CwInput and shares its label, hint, error and size styling. It can show a live character count against `maxlength`.
Copy-paste examples
Each snippet is a complete, working example you can paste into a Svelte 5 component.
Notes field with a limit
<script lang="ts">
import { CwTextArea } from '@cropwatchdevelopment/cwui';
let notes = $state('');
</script>
<CwTextArea
label="Field notes"
hint="Visible to everyone in this location."
bind:value={notes}
maxlength={500}
showCount
rows={4}
resize="vertical"
/>