Skip to content

[TextField] allow use react element in TextField hintText #1202

@ericfong

Description

@ericfong

We would like to use

 <TextField
 hintText={<span><i className="material-icons">search</i>Search...</span>}
 type="search" />

to put a material-icon into the hintText

I found that is working now. But with warning

Warning: Failed propType: Invalid prop `hintText` of type `object` supplied to `TextField`, expected `string`. Check the render method of `SearchBox`.

Please allow pass in react element. Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: text fieldChanges related to the text field.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions