Home > Mobile >  How do you style a Title component in Mantine?
How do you style a Title component in Mantine?

Time:02-02

I am trying to style the Title component in Mantine: enter image description here

CodePudding user response:

This tells me that the Title's intrinsic attributes, props and attributes does not have color. You can go to the props page to see all the available props.

I would suggest a workaround like this:

<Title order={1} my="lg" align="center">
    <span style={{ "color" : "red" }}>Upload a new Post</span>
</Title>
  • Related