An input is a standalone, multiline text input that allows a user to provide or edit a text value.
🙌 Heads up! This code is editable. The preview above will update to reflect your changes.
Usage
import { TextArea } from 'materialish';
import 'materialish/materialish.css';
Props
| Prop Name | Default Value | Description |
|---|
| className | | Additional class name(s) to add to the textarea |
| error | false | Whether or not the textarea is in an invalid state |
| nodeRef | | Pass a ref to get access to the textarea element |
| ...rest | | Other props are placed on the root textarea element |
CSS Variables
| Variable | Default Value | Description |
|---|
| --mt-baseFontSize | 1rem | The text size and dimensions of the textarea are based off of this value |
| --mt-fontFamily | 'Roboto' | The font family to use for the textarea text |
| --mt-input-focusBorderColor | --mt-mainColor, #4a8fe2 | The border color to use when the textarea is focused |