Wondering how to style a TextField component in React-MDL to look like an h1 title?
The "style" parameter can be used for this purpose. For example:
<TextField style={{width: '200px'}}/>
. But how can I achieve the size, font, and appearance of an h1 title?
In my case: I have headers on a page that need to be editable at times, so I am converting them into <TextField>
components. However, I want them to maintain the same look as they did when they were <h1>
headers.
Any suggestions are welcome! Thank you!
Note: I prefer using existing material classes/practices rather than creating a new CSS class to mimic all the properties of an h1 header. This way, if material design changes, I only need to update the existing classes rather than custom ones.