Use this tag for questions about the React-based Mantine components and hooks library.
Questions tagged [mantine]
126 questions
1
vote
0 answers
How to handle darkmode with Tailwind AND Mantine
I'm building a React / Redux app combined with some styling libraries. By looking at the documentation of both Mantine and TailwindCSS, I found pages treating about how to make darkmode / lightmode work in the app for each of them.
As I understand,…

Alexis
- 392
- 2
- 11
1
vote
1 answer
How do you style a Title component in Mantine?
I am trying to style the Title component in Mantine: https://mantine.dev/core/title/
Upload a new Post
According to the docs, we can use color:

Pavel Fedotov
- 748
- 1
- 7
- 29
1
vote
1 answer
grouping rows in mantine table in react: Encountered two children with the same key error
[enter image description here][1]I'm trying to group the rows in the mantine table and this is what I've tried
I'm new to mantine and react and
I'm trying to group the rows in the mantine table here but I came up with this error
output I'm trying to…

Aishwarya J S
- 11
- 4
1
vote
0 answers
Integrating an optional "App Shell" into React Router
I want my React website normally to have an "app shell" (header, footer, sidebar with menu, etcetera) but for specific URI paths...I want those "app shell" elements to disappear. I am new to React and React Router, so I came up with this…

Brent Arias
- 29,277
- 40
- 133
- 234
1
vote
1 answer
Add props to Button in Mantine TypeScript
I would like to create a button that changes background color depending on what the page/path is.
To do this, I was thinking of passing a new prop (ex. selected) to the Button component in Mantine in TypeScript.
So far, I have tried extending the…

Victor M
- 603
- 4
- 22
1
vote
2 answers
Dependency conflict. Unable to resolve dependency tree
I'm creating React project and use Mantine library. When I try to install @modulz/radix-icons dependency I get error messages that there is a dependency conflict . How can I solve this problem?
Error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable…

Igor Gryp
- 67
- 5
1
vote
1 answer
Mantine UI - Using useMantineColorScheme with NextJS - ColorSchemeProvider is missing
I have a NextJS app where I'd like to use Mantine as the UI library, however I'm running into an issue with the setup.
I have basically followed the standard setup instructions exactly, however I'm getting the following error:
Error:…

Tyler
- 1,163
- 16
- 37
1
vote
1 answer
Can you use Mantine Hooks without Mantine Core?
I am making a site using Next.js and tailwind. To save time I am trying to find a hooks library. While researching I stumbled across Mantine UI. The mantine hooks library is exactly what I'm looking for, but I don't want to use their UI…

Shawn
- 109
- 1
- 12
1
vote
1 answer
Warning: flushSync was called from inside a lifecycle method
Would anyone know how to debug and fix (or mute) following warning (apparently, Mantine is dropping react-popper in next major release)?
Everything works fine, but warning is making it very hard to debug other issues.
Warning: flushSync was called…

sunknudsen
- 6,356
- 3
- 39
- 76
1
vote
2 answers
TypeError: Cannot read properties of null (reading 'index') (https://mantine.dev/)
I'm using Rich Text Editor of Mantine in a next js project.
It's working fine for all the control except for List (both ordered & unordered).
When using list in this rte, it gives the following error
TypeError: Cannot read properties of null…

Abhishek Jha
- 111
- 1
- 11
1
vote
2 answers
How to use pseudo classes when button clicked show title text
I would like that the user enters their name in input, then when button to save is clicked the button disappears and the user name appears. (Using createstyles I'm aware I could write a function)
I want to use pseudo classes and am currently using…

meWho
- 129
- 1
- 8
1
vote
0 answers
WebpackError: useMantineColorScheme hook was called outside of context
I'm using gatsby js and the mantine library. Everything works fine when I run yarn develop, but when I try yarn build I get this error:
WebpackError: useMantineColorScheme hook was called outside of context, make sure your app is wrapped with…

sofifa
- 11
- 1
1
vote
1 answer
Using Mantine UI .tsx file within a javascript based react project
I currently am building a fitness website and am looking to use Mantine UI accordion component which is based off Typescript. I built my react project with javascript. Is there a way to create a .tsx file and call it into my app.js file?
Here's the…

frankieseattle
- 161
- 1
- 10
1
vote
1 answer
extend Mantine Accordion Item
Mantine accordion specifies that its content should be only of type Accordion.Item (or, AccordionItem) - see the documentation for the children props. This means that even functions that actually return AccordionItem will not be listed.
So, this…

Meir
- 14,081
- 4
- 39
- 47
1
vote
1 answer
Override Mantine styles to only one element
In my React project, I am using Mantine's library accordion in two different components: Search.jsx and Profile.jsx.
The point is I need to accurately customize its styles only in Profile so I inspected the element and discovered that the default…

jmonloop
- 78
- 3
- 7