@mfp-design-system/textarea
v1.0.0
Published
Textarea web component for the mfp-design-system, built with Lit.
Readme
@mfp-design-system/textarea
Multi-line text input. Mirrors <mfp-input>'s API and accessibility patterns.
import '@mfp-design-system/textarea';<mfp-textarea label="Notes" placeholder="What do you think?" rows="4"></mfp-textarea>
<mfp-textarea name="bio" required hint="Tell us about yourself"></mfp-textarea>| Attribute | Type | Default |
| -------------------------------------------------------- | ------------------------------------------------ | ------------ |
| value, name, label, placeholder, hint, error | string | '' |
| rows | number | 4 |
| size | 'sm' \| 'md' \| 'lg' | 'md' |
| resize | 'none' \| 'vertical' \| 'horizontal' \| 'both' | 'vertical' |
| disabled, readonly, required | boolean | false |
Form-associated, fires input and change CustomEvents with detail.value.
