back
loading skill details...
Build custom components that integrate with Mantine's theming, Styles API, and core features. Use this skill when: (1) creating a new component using…
Mantine Custom Components Skill
Written for Mantine 9.x.
Component template
import {
Box, BoxProps, createVarsResolver, ElementProps,
factory, Factory, getRadius, MantineRadius,
StylesApiProps, useProps, useStyles,
} from '@mantine/core';
import classes from './MyComponent.module.css';
export type MyComponentStylesNames = 'root' | 'inner';
export type MyComponentVariant = 'filled' | 'outline';
export type MyComponentCssVariables = { root: '--my-radius' };don't have the plugin yet? install it then click "run inline in claude" again.