/mantine:mantine-testingfrom mantine
Writes component tests for Mantine UI using React Testing Library, user-event, and jsdom with vitest or jest. Covers Mantine inputs, portals, drag-and-drop, forms, and async validation.
Ships in mantine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Written for Mantine 10.x with React Testing Library and @testing-library/user-event, in jsdom
under vitest or jest. The task skills (mantine-form, mantine-combobox, mantine-ui) say what
a component does; this skill says how to prove it. Read the reference file for every area the
component touches before writing the tests.
it('focuses the first invalid field when Next is pressed'). A
failure must point at one behavior; do not chain "validates X, saves Y and resets Z" into one
test. Shared steps go into small helper functions (fillPersonal(user)), not into beforeEach
state.getByRole with an accessible name, getByLabelText, getByText.
Never class names (.mantine-Stepper-stepLabel), never data-testid when a role or label
exists; a data-testid is the last resort for a container with no role.userEvent.setup() per test, user.type, user.click,
user.keyboard; fireEvent only for events user-event cannot produce (paste with files,
scroll).MantineProvider with env="test" through a shared render helper, see
setup. Overlays render in portals: query the document via screen,
scope with within(screen.getByRole('dialog')).onSubmit, the notification title — not internal state, not that a
callback was called with a form object.Date when the component compares against today: jest
jest.useFakeTimers({ now: new Date(2026, 9, 17, 12), advanceTimers: true }) with
userEvent.setup({ advanceTimers: jest.advanceTimersByTime }); vitest
vi.useFakeTimers({ toFake: ['Date'] }) + vi.setSystemTime. Restore in afterEach. Never
fake all timers around user-event without advanceTimers.act
wrapper, a missing key, a controlled/uncontrolled switch), not noise to silence.notifications.clean() and useRealTimers() in afterEach.jest.fn / jest.mock / jest.useFakeTimers in a
jest project, vi.* in a vitest project; never import vitest into a jest project or the
other way round. The equivalents are listed in setup.matchMedia, ResizeObserver,
document.fonts, scrollIntoView), vitest and jest configsSelect, NumberInput, DatePickerInput, PhoneInput, Checkbox,
SegmentedControl, Textarea, PinInput)useModal, notifications,
popovers, tooltips@mantine/form form and howWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mantinedev/skills --plugin mantine9 skills in this plugin
/mantine-calendarBuild custom calendars and date pickers with @mantine/dates: per-day content and states, your own selection rules, custom periods and display-only calendars. Use this skill when: (1) a calendar shows data per day (prices, free slots, event dots, activity heatmap), (2) days are unavailable with a reason, or a range must not cross booked days, (3) the selection is not a plain date, dates or range (stays, fixed-length periods, fiscal quarters, week or custom-period pickers), (4) a calendar sits next to time slots, presets or a toolbar, or (5) any task involving Calendar, useCalendar, getDayProps, renderDay, excludeDate, getMonthControlProps, Month, Day, CalendarHeader or PickerControl.
/mantine-comboboxBuild custom dropdown/select/autocomplete/multiselect components using Mantine's Combobox primitives. Use this skill when: (1) creating a new custom select-like component with Combobox primitives, (2) building a searchable dropdown, (3) implementing a multi-select or tags input variant, (4) customizing option rendering, (5) adding custom filtering logic, or (6) any task involving useCombobox, Combobox.Target, Combobox.Option, or Combobox.Dropdown.
/mantine-custom-componentsBuild custom components that integrate with Mantine's theming, Styles API, and core features. Use this skill when: (1) creating a new component using factory(), polymorphicFactory(), or genericFactory(), (2) adding Styles API support (classNames, styles, vars, unstyled), (3) implementing CSS variables via createVarsResolver, (4) building compound components with sub-components and shared context, (5) registering a component with MantineProvider via Component.extend(), or (6) any task involving Factory, useProps, useStyles, BoxProps, StylesApiProps, or ElementProps in @mantine/core.
/mantine-data-gridBuild data tables with `@mantine/data-grid` (DataGrid on TanStack Table v9). Use this skill when: (1) building an admin list, orders table or any table with sorting, filtering or pagination, (2) connecting a grid to an API with server-side sorting, filtering and pagination, (3) adding row selection with bulk actions, row actions or inline cell/row editing, (4) rendering grouped rows, tree data, pinned or resizable columns, or 10k+ rows with virtualization, (5) adding a toolbar, filter controls, export or a custom footer to a grid, or (6) any task involving `DataGrid`, `useDataGrid`, `DataGridColumnDef` or `@tanstack/react-table` inside a Mantine app.
/mantine-formBuild forms using @mantine/form. Use this skill when: (1) setting up a form with useForm, (2) adding validation rules, schema validation (zod, valibot, arktype) or async validation, (3) working with nested object or array fields, (4) reading values, dirty or touched state during render (useWatchValue, useDirty, useTouched), (5) splitting a form into components or reusing field components across forms (createFormContext, getField), (6) building custom inputs that work with getInputProps (useFormField), (7) using the standalone useField hook, or (8) any task involving useForm, getInputProps, onSubmit, insertListItem, or form validation.
/mantine-scheduleBuild calendar and scheduling interfaces with @mantine/schedule. Use this skill when: (1) adding a day, week, month, year or agenda calendar (Schedule, DayView, WeekView, MonthView, YearView, AgendaView, MobileMonthView), (2) building a booking page, team rota, room planner or any view with people, rooms or machines as rows (ResourcesSchedule, ResourcesDayView, ResourcesWeekView, ResourcesMonthView), (3) creating events by clicking or drag-selecting slots, (4) moving or resizing events with drag and drop and rejecting invalid placements, (5) recurring events (rrule, exceptions, single-occurrence edits), (6) business hours, blocked time or other background events, (7) custom event rendering, or (8) any task involving ScheduleEventData, onEventDrop, onSlotDragEnd or onTimeSlotClick.
Other plugins' skills for the same job