Posts by Carlos Tirabassi • 26 points
4 posts
-
1
votes1
answer51
viewsA: How to change the pre-name of classes generated by Material UI
If I understand what you want to do, you can use createGenerateClassName in your Stylesprovider to pass its prefix import React from 'react'; import { StylesProvider, createGenerateClassName } from…
-
0
votes1
answer61
viewsA: Textfield Select default value in Material-ui
I don’t know if it’s the best way, but I added it and it worked here: <option disabled selected value={""}></option>
-
0
votes2
answers43
viewsA: Passing specific attributes to a component in React
You can use the spread as well (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator) See an example here:…
-
-1
votes1
answer61
viewsQ: Textfield Select default value in Material-ui
It’s a basic question, I’m trying to leave the default value empty, but it always ends up filling with the first item: <TextField select id="letter" name="letter" label="Letra" defaultValue=""…