Materialish

TextArea

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 NameDefault ValueDescription
classNameAdditional class name(s) to add to the textarea
errorfalseWhether or not the textarea is in an invalid state
nodeRefPass a ref to get access to the textarea element
...restOther props are placed on the root textarea element

CSS Variables

VariableDefault ValueDescription
--mt-baseFontSize1remThe 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, #4a8fe2The border color to use when the textarea is focused

Useful Links