项目作者: Rick83600

项目描述 :
A textField icon for material-ui.
高级语言: JavaScript
项目地址: git://github.com/Rick83600/material-ui-textfield-icon.git
创建时间: 2017-09-28T11:16:27Z
项目社区:https://github.com/Rick83600/material-ui-textfield-icon

开源协议:

下载


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.

Image

Installation

  1. npm i material-ui-textfield-icon --save

Usage

  1. import TextFieldIcon from 'material-ui-textfield-icon';
  2. <TextFieldIcon
  3. hintText='My textField'
  4. icon={<HelpOutline ></TextFieldIcon>}
  5. fullWidth={false}
  6. />

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.