/ReactSimpleInput

Simple textInput element styled like material-ui textField.

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

React Simple Input

Overview

Simple textInput element styled like material-ui.

No other dependencies but React.

normal

error

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