#Modal doesnt work
1 messages · Page 1 of 1 (latest)
Wrap your code in <ModalsProvider>.
It's clearly stated in the docs: https://mantine.dev/others/modals/#setup-modalsprovider.
But at https://mantine.dev/others/modals/#content-modals its without Modals Provider...
Demo is not the root element.
Wdym?
What's the difference between App component and lets say Button component?
Same goes for App and Demo.
Demo is just a wrapper component. Somewhere above it in the tree there is a <ModalsProvider>.
You don't need to present the whole component structure in a demo to show how a component works.
That's why there is a https://mantine.dev/others/modals/#setup-modalsprovider section.
And <App /> is my code?