material-ui-textfield-icon
v0.2.8
Published
A textField icon for material-ui v0.x
Downloads
53
Maintainers
Readme
INFO: This package is useful for material-ui 0.x, You don't need it if you use material-ui v1.x !
material-ui-textfield-icon
This package provide a TextFieldIcon for Material-UI. Use the storybook inside for test.
Installation
npm i material-ui-textfield-icon --save
Usage
import TextFieldIcon from 'material-ui-textfield-icon';
<TextFieldIcon
hintText='My textField'
icon={<HelpOutline />}
fullWidth={false}
/>
Properties
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| icon* | node
| | TheIcon
you want to display |
| iconPosition | string
| after | A string use for the icon position. 'after' OR 'before' |
| iconProps | object
| {} | An object of IconButton material-ui props |
| textFieldStyle | object
| {} | An object of material-ui textField styles |
| iconStyle | object
| {} | An object of material-ui IconButton styles |
* required property
License
The files included in this repository are licensed under the MIT license.