/mantine:mantine-schedulefrom mantine
Build calendar and scheduling interfaces with @mantine/schedule. Supports day, week, month, year, agenda views, resource-based scheduling, drag-and-drop events, recurring events, and custom rendering.
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. Upgrading code written for 9.x: see Coming from 9.x.
@mantine/schedule renders events you own. Every view takes an events array and reports user
actions (click a slot, drag-select a range, drop or resize an event) through callbacks with the
new dates; your code updates its state and passes the new array back. The views never change
events on their own.
npm install @mantine/schedule @mantine/dates dayjs
import '@mantine/core/styles.css';
import '@mantine/dates/styles.css';
import '@mantine/schedule/styles.css';
Schedule styles are imported after core and dates styles. Without them the views render unstyled.
Load the mantine-ui skill together with this one for the forms, modals and buttons around the
calendar, and mantine-form for the event form.
| Need | Use |
|---|---|
| A calendar with a view switcher (day, week, month, year), the usual starting point | Schedule |
| One fixed view: a day agenda, a week planner, a month overview | DayView, WeekView, MonthView, YearView |
| Events as a list grouped by date for a given range | AgendaView (rangeStart, rangeEnd), or withAgenda on a view to add an Agenda button |
| Phone-sized month grid with the selected day's events below it | MobileMonthView, or Schedule layout="responsive" to switch automatically |
| People, rooms, machines as rows with a view switcher (day, week, month) | ResourcesSchedule |
| One fixed resources view | ResourcesDayView (time slots as columns), ResourcesWeekView, ResourcesMonthView (days as columns) |
| Your own header (filters, print, a create button) | withHeader={false} on the view plus ScheduleHeader compound components |
YearView shows dots only, AgendaView and MobileMonthView show lists: none of them supports
drag and drop, resize or slot selection. Year view has no onEventClick.
import type { ScheduleEventData } from '@mantine/schedule';
const events: ScheduleEventData[] = [
{
id: 'standup-1',
title: 'Standup',
start: '2026-11-02 09:00:00',
end: '2026-11-02 09:30:00',
color: 'blue',
},
{
id: 'offsite',
title: 'Team offsite',
start: '2026-11-03 00:00:00',
end: '2026-11-05 00:00:00',
color: 'grape',
payload: { location: 'Lisbon' },
},
];
id, title, start, end, color are required. color is a theme color key or any CSS color.start and end are YYYY-MM-DD HH:mm:ss strings (a Date is accepted too). Callbacks
return the same string format, so values from callbacks can be stored as they are.00:00:00 and ends at
00:00:00 of the next day; a multi-day all-day event ends at 00:00:00 of the day after its
last day (exclusive end). Timed events that cross midnight are shown with the all-day events in
week view.variant ('filled' | 'light', default 'light'), display: 'background',
resourceId (resources views), payload (your own data, typed with
ScheduleEventData<MyPayload>, the library never reads it).recurrence: { rrule, exdate?, dtstart? }; a changed occurrence is an
override event with recurringEventId and recurrenceId. See the recurring pattern.import { useState } from 'react';
import { Schedule, ScheduleEventData, ScheduleViewLevel } from '@mantine/schedule';
function TeamCalendar({ initialEvents }: { initialEvents: ScheduleEventData[] }) {
const [events, setEvents] = useState(initialEvents);
const [date, setDate] = useState<string>('2026-11-02');
const [view, setView] = useState<ScheduleViewLevel>('week');
const updateDates = ({ eventId, newStart, newEnd }: { eventId: string | number; newStart: string; newEnd: string }) =>
setEvents((current) =>
current.map((event) => (event.id === eventId ? { ...event, start: newStart, end: newEnd } : event))
);
return (
<Schedule
events={events}
date={date}
onDateChange={setDate}
view={view}
onViewChange={setView}
withEventsDragAndDrop
withEventResize
onEventDrop={updateDates}
onEventResize={updateDates}
weekViewProps={{ startScrollTime: '08:00:00', scrollAreaProps: { mah: 640 } }}
dayViewProps={{ startScrollTime: '08:00:00', scrollAreaProps: { mah: 640 } }}
/>
);
}
Schedule also works uncontrolled (defaultDate, defaultView). Single views (DayView,
WeekView, …) require date: keep it in state and update it in onDateChange, otherwise the
header's previous, next and today buttons do nothing.
const [draft, setDraft] = useState<{ start: string; end: string } | null>(null);
<WeekView
date={date}
onDateChange={setDate}
events={events}
withDragSlotSelect
onSlotDragEnd={(rangeStart, rangeEnd) => setDraft({ start: rangeStart, end: rangeEnd })}
onTimeSlotClick={({ slotStart, slotEnd }) => setDraft({ start: slotStart, end: slotEnd })}
onAllDaySlotClick={(day) =>
setDraft({
start: dayjs(day).format('YYYY-MM-DD 00:00:00'),
end: dayjs(day).add(1, 'day').format('YYYY-MM-DD 00:00:00'),
})
}
onEventClick={(event) => openEditor(event)}
/>
Open a modal form from draft and append the event on submit; the complete version with edit and
delete is in references/patterns.md.
const resources: ScheduleResourceData[] = [
{ id: 'room-a', label: 'Room A' },
{ id: 'room-b', label: 'Room B' },
];
<ResourcesDayView
date={date}
onDateChange={setDate}
resources={resources}
events={events}
startTime="08:00:00"
endTime="20:00:00"
intervalMinutes={30}
withEventsDragAndDrop
preventEventOverlap
onEventDrop={({ eventId, newStart, newEnd, resourceId }) =>
setEvents((current) =>
current.map((event) =>
event.id === eventId ? { ...event, start: newStart, end: newEnd, resourceId } : event
)
)
}
/>
Every event needs a resourceId equal to a resource id (same type: 1 and '1' do not
match); events without one are not shown.
<WeekView
date={date}
onDateChange={setDate}
events={[...events, ...blockedTime]}
highlightBusinessHours
businessHours={{ 1: ['09:00', '18:00'], 2: ['09:00', '18:00'], 3: ['09:00', '18:00'], 4: ['09:00', '18:00'], 5: ['09:00', '14:00'] }}
withEventsDragAndDrop
canDropEvent={({ start, end }) => !blockedTime.some((block) => isEventsOverlap({ start, end } as ScheduleEventData, block))}
/>
blockedTime holds events with display: 'background'. They render behind regular events and are
never counted as conflicts, so dropping onto them is allowed until canDropEvent rejects it.
The per-day businessHours object is WeekView only; other views take one [start, end] tuple.
Opening hours, closed days and other time that repeats every day or week are business hours
(highlightBusinessHours + businessHours), and days that are always closed are hidden with
withWeekendDays={false}. Background events are for the blocks business hours cannot express:
a lunch break, a coffee break for every stage, a holiday, maintenance, a doctor's leave. Never
generate them for every closed hour of every resource: that paints a grid of patches instead of
a shaded area.
Time that marks an absence or a shared break (lunch, leave, vacation, a break across all stages)
is a background event, never a regular gray event that looks like a booking. Background events
take the view's radius, so they look like rounded cards; set their radius to 0 so they read as
shaded time. With Schedule / ResourcesSchedule, pass it through the view props:
<Schedule
weekViewProps={{ styles: { weekViewBackgroundEvent: { borderRadius: 0 } } }}
monthViewProps={{ styles: { monthViewBackgroundEvent: { borderRadius: 0 } } }}
/>
The selectors are weekViewBackgroundEvent, monthViewBackgroundEvent,
resourcesDayViewBackgroundEvent and resourcesWeekViewBackgroundEvent (DayView already uses 0).
Container, maw or a
narrow column, and do not add a page title or intro text unless the task asks for one.ms="auto": render the header yourself (withHeader={false} + ScheduleHeader compound
components, see Custom header). Do not stack them in a
separate row above the header. A filter with several options (channels, tracks, teams) is too
wide for the header: it wraps the row and competes with the navigation. Put it in a side panel
next to the calendar (a Checkbox per category in the category color doubles as the legend),
together with other panel content such as drafts. Check the header at about 1100px wide: it
stays on one line and holds at most one filled button besides the active view.color and variant. The package paints the visible event box (an
inner element) from --event-bg and --event-color, resolved for both color schemes. Do not
restyle events with your own classes stacked on the package ones (.event.event): the outer
root and the inner box differ, so the result looks different in light and dark mode. For a
state such as draft or cancelled, change color/variant per event or set --event-bg and
--event-color in the renderEvent root style, then check both color schemes.'cyan.8')
or a lighter one ('yellow.4', dark text through auto contrast). Keep the number of event
colors small: color one dimension (type, channel, track), not several.width: 100% with text-align: start; otherwise every
row starts at a different x.ResourcesWeekView (startScrollDateTime) and
ResourcesMonthView (startScrollDate) open at the start of the range. Point them at today,
the current time or the first event of the visible range so the first screen is not empty.canDropEvent / canDropExternalEvent. The views call
them while the item moves and paint the target red when they return false, so the user sees
the rejection before letting go. A check that only runs in onEventDrop or
onExternalEventDrop surprises the user after the drop; report the reason in
onEventPlacementRejected.Drawer opened from the header) below md; the page never scrolls
sideways. Resources views shrink their label columns on phones (a short name, details in a
Tooltip) so the time grid keeps most of the width, or switch to a per-resource list of the
day. Check every view at 390px.renderHeader, a
standalone MobileMonthView) keeps previous/next controls, and a year or month button in it
is wired (onYearClick). A view whose user cannot get to next week is broken, not minimal.ResourcesMonthView) or slots narrow enough that the week
fits, not 30-minute slots that show six hours per screen. A one-day program with parallel
tracks reads better as vertical time with tracks as columns. Content that continues
off-screen keeps its scrollbar visible.canDropEvent, the slot click handler, the form's validation) and shade past time
(background events or getTimeSlotProps).highlightToday={false}.'2026-11-02 09:00:00' is shown at 09:00 whatever the user's zone. Convert UTC or zoned values from the server to the
display zone at the API boundary (dayjs utc and timezone plugins) and back on save. Store
the strings callbacks return; do not mix them with toISOString() values.onDayClick, onAllDaySlotClick) pass YYYY-MM-DD, while header navigation
(onDateChange) and MobileMonthView onSelectedDateChange pass YYYY-MM-DD 00:00:00.
`${day} 09:00:00` breaks on the second form; write
dayjs(day).hour(9).format('YYYY-MM-DD HH:mm:ss').end before start throws during render, so validate data
from the server before passing it in.00:00:00 of
the following day. onSlotDragEnd in MonthView and ResourcesMonthView returns 23:59:59 of
the last selected day: round it up with dayjs(rangeEnd).add(1, 'second') before saving if you store exclusive ends.withDragSlotSelect is off by default, and
onSlotDragEnd fires only when the drag crosses two or more slots; a single click calls
onTimeSlotClick (day and week views) or onDayClick (month views). Wire both.canDropEvent, canResizeEventTo,
canDropExternalEvent and preventEventOverlap run on every pointer move. Show messages and
send requests in onEventPlacementRejected. A function passed to preventEventOverlap returns
true to forbid the overlap. Overlap is checked only against events of the visible range:
check again on the server.eventId is
generated (seriesId::YYYY-MM-DD HH:mm:ss) and matches nothing in your array. Branch on
event.recurringInstance?.isRecurringInstance and add an override event (or ask "this event or
the series?").mode="static" also disables onEventClick. For a read-only calendar whose events still
open details, leave mode alone and omit the drag, resize and slot props.slotHeight (64px) tall. Pass
scrollAreaProps={{ mah }} (or narrow startTime/endTime) so the grid scrolls inside the
page and startScrollTime has something to scroll.intervalMinutes is 15 in DayView and 60 in WeekView,
ResourcesDayView and ResourcesWeekView. Set it explicitly when the slot length matters
(bookings, rotas).Schedule shared props cannot be overridden per view. events, the callbacks and the
drag/resize flags are typed out of dayViewProps/weekViewProps/…; one onDayClick serves
both month and year view, so branch on the current view.ResourcesDayView /
ResourcesWeekView only. Year, agenda and mobile views skip them, and they are not clickable
unless withInteractiveBackgroundEvents is set.renderEvent gets the root props, including children, drag handlers and Mantine mod.
Spread them on a Mantine component (UnstyledButton, or HoverCard.Target around it), not on
a plain <button>; dropping them breaks drag, keyboard focus and styles. For content changes
only, use renderEventBody.events referentially stable (state or useMemo). Recurring expansion is memoized on
the array reference; a new literal every render redoes it each time.Schedule layout="responsive" shows MobileMonthView: no drag and drop, no slot clicks. Provide a create
button through mobileMonthViewProps.renderHeader and keep editing reachable from
onEventClick.MobileMonthView calls onDateChange when a day is selected: update a controlled date there.WeekView and ResourcesWeekView weekLabelFormat defaults to MMM D (was MMM DD).WeekView no longer sets data-all-day-dragging; style drags with data-event-interaction.isAfterMinDate and isBeforeMaxDate are no longer exported: compare with dayjs.references/patterns.md — complete examples: controlled
date and view, loading events for the visible range, create/edit/delete with a modal, drag and
drop and resize with validation, external drag and drop, recurring events (series,
single-occurrence edits, exceptions), resources with groups, business hours and blocked time,
custom rendering (renderEventBody, renderEvent, YearView renderDay), current time
indicator and timezones, localization and labels, custom header, mobilereferences/api.md — props of every view grouped by concern, callback
payloads, event and resource types, exported utilities, Styles API names and CSS variablesIf the references do not cover what you need, do not guess:
@mantine/mcp-server) is connected, use search_docs and get_item_dochttps://mantine.dev/llms.txt and open the schedule pages
(https://mantine.dev/schedule/getting-started/ and the page of each view)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-testingWrite and run component tests for interfaces built with Mantine (React Testing Library, user-event, jsdom with vitest or jest). Use this skill whenever a task asks for tests of a Mantine component or form, or when existing tests of Mantine UI fail in jsdom: (1) render setup and jsdom stubs, (2) how to interact with Mantine inputs in tests (selects, number inputs, date pickers, phone input, checkboxes, segmented controls), (3) modals, drawers, notifications and other portals, (4) drag and drop with dnd-kit, (5) forms built with @mantine/form, (6) fake timers and async validation, or (7) test structure and naming.
Other plugins' skills for the same job