-
Manitine is just incredible and the docs are also so slick. In Chakra UI, we can dynamically add all the css properties to components, for example - to add margin and padding of 10px and background color of #eb4034 <Box m="10px" p="10px" bgColor="#eb4034">
<Text>Hello World</Text>
</Box> Can you please tell how can I achieve this in Mantine. I was not able to find any docs related to this. 😞 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The simplest way would be to do this:
You could also use |
Beta Was this translation helpful? Give feedback.
-
Hi, you can add styles with |
Beta Was this translation helpful? Give feedback.
Hi, you can add styles with
style
prop just like in any other component or element, this prop always have highest priority. You can also useclassName
and add your styles with any css solution (jss is not required).