0.1.4 • Published 3 years ago
react-simple-material-input v0.1.4
React Simple Input
Overview
Simple textInput element styled like material-ui.
No other dependencies but React.
Example
import ReactSimpleInput from "react-simple-material-input";
...
<ReactSimpleInput
placeholder="Label"
error={error}
errorColor="#e81e25"
>
Props
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