This package provide a TextFieldIcon for Material-UI. Use the storybook inside for test.
npm i material-ui-textfield-icon --save
import TextFieldIcon from 'material-ui-textfield-icon';
<TextFieldIcon
hintText='My textField'
icon={<HelpOutline />}
fullWidth={false}
/>
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
The files included in this repository are licensed under the MIT license.