material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

TextField FloatingText as Mandatory

Open romil-zealous opened this issue 9 years ago • 3 comments

Hello,

Anyone can let me know how to define a Textfield as mandatory? such as I want to display '*' indicator in red colour along with FloatingLabelText.

However, FloatingLabelText should be in black colour and only '*' should be in red colour.

Thanks, Romil

romil-zealous avatar Feb 22 '17 14:02 romil-zealous

Hey, @shahromil88, have you tried to wrapping it in a <span> with a style applied to the span? The component might expect a string as props, so not sure if that would work.

m2mathew avatar Feb 24 '17 19:02 m2mathew

Hi @m2mathew , Tried with putting *, but it is treating as string instead of html.

romil-zealous avatar Feb 25 '17 05:02 romil-zealous

It was my mistake, It was passing as string instead of inline html. Issue is fixed.

romil-zealous avatar Feb 25 '17 11:02 romil-zealous