V
V
Viktor2020-04-26 18:23:12
React
Viktor, 2020-04-26 18:23:12

How to properly style react material ui components?

The description of the TextField component contains the following item:
5ea5a6ce4b98a857913307.png
I created the component

<TextField label="Тест" variant="filled" inputProps={inputProps} />

I want to remove the bottom line and do this:
const inputProps = {   
    disableUnderline: true
  };


disableUnderline - took and api FilledInput
But it doesn't work, what's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor, 2020-04-26
@polyak-888

Found an error. InputProps={inputProps} (capital first letter)

G
grinat, 2020-04-26
@grinat

Ask via jss

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question