useStyleshook that will be used in component with createStyles:
- Add styles to component with
Done! Styles API support was added to
MyComponent. You can now
styles and other system props:
You can also add
classNames on MantineProvider:
You can add default props support to any component with
DefaultProps adds system props support (margin, padding, sx, unstyled, styles and classNames).
It accepts 2 types: styles names and styles params, both of them are optional.
When you build components there might be 4 cases: