variantMapping
The component maps the variant prop to a range of different HTML element types. For instance, subtitle1 to <h6>
. If you wish to change that mapping, you can provide your own. Alternatively, you can use the component
prop.