#Does "Import styles per component" work?

3 messages · Page 1 of 1 (latest)

sturdy patrol
#

In an empty Vite project, I decided to try "Import styles per component". Using import @mantine/core/styles.css; the button looks as usual.

But when importing styles specifically for the button one after the other, as indicated in the documentation import '@mantine/core/styles/UnstyledButton.css';
import '@mantine/core/styles/Button.css';, the button looks like in the screenshot.

Here is an example on codesandbox https://codesandbox.io/s/password-input-forked-yhwz7k?file=/src/App.tsx

sturdy patrol