Materal UI code example
Example 1: material ui
$ npm install @material-ui/core
Example 2: material-ui
yarn add @material-ui/core
npm install @material-ui/core
Example 3: material ui
npm install @material-ui/core
Example 4: material ui
import TextField from '@material-ui/core/TextField'
<TextField
id="slots"
type="number"
min={1}
defaultValue="1"
className="TextField pa2"
onChange={handleChange}
label="number of slots"
InputProps={{
inputProps: { min: 1}
}}
InputLabelProps = {{
shrink:true,
}}/>