primitives/@mihcm/ui·v0.21.0·stable
Textarea
Multi-line text entry. Shares the variant + invalid model with Input.
Props
The full prop API for Textarea. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
variant | 'default' | 'destructive' | 'default' | Visual variant. `destructive` mirrors `invalid={true}`. | 0.3.0 |
invalid | boolean | false | Sets `aria-invalid` and applies the destructive variant. | 0.3.0 |
required | boolean | false | Sets `aria-required`. | 0.3.0 |
rows | number | 3 | Visible row count; sets min-height on native too. | 0.3.0 |
Import
import { Textarea } from '@mihcm/ui/Textarea';