-
Is it possible to use Styled Components with Mantine and have no issue? I have been trying to convert my NextJS project with Styled Components to use Mantine but I see errors like the following sometimes:
I understand JSS is the preferred way as that is what Mantine is using to style components but personally I have never liked the React If this is not something supported and these issues will persist then it seems you go all in on JSS and Mantine or do not adopt Mantine as a component library. Please let me know! Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @BradNut, this issue is not related to styled components, Mantine uses random id generation to connect labels with associated controls. Each component that does it accepts |
Beta Was this translation helpful? Give feedback.
Hi @BradNut, this issue is not related to styled components, Mantine uses random id generation to connect labels with associated controls. Each component that does it accepts
id
prop (or similar) to assign static id instead of random one. For example – https://mantine.dev/core/text-input/#server-side-rendering