Simple textInput element styled like material-ui.
No other dependencies but React.
import ReactSimpleInput from "react-simple-material-input";
...
<ReactSimpleInput
placeholder="Label"
error={error}
errorColor="#e81e25"
>
Name | Type | Description | Required | Default |
---|---|---|---|---|
placeholder | string | Text used for label and placeholder | false | "" |
error | string | Error Message | false | "" |
errorColor | string | Text color for Error Message | false | "#e81e25" |
And take all other attributes in React.InputHtmlAttributes