Seongil-Shin / ReactSimpleInput

Simple textInput element styled like material-ui textField.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple textInput element styled like material-ui textField.

License:GNU General Public License v3.0


Languages

Language:HTML 42.4%Language:CSS 28.2%Language:TypeScript 24.8%Language:JavaScript 4.7%