Support Mantine development
You can now sponsor Mantine development with OpenCollective. All funds are used to improve Mantine and create new features and components.
Sponsor MantineMigration guide
This changelog covers breaking changes and new features in Mantine 9.0. To migrate your application to Mantine 9.0, follow 8.x → 9.x migration guide.
Peer dependencies requirements updates
Starting from Mantine 9.0, the following dependencies are required:
- React 19+ for all
@mantine/*packages - Tiptap 3+ for
@mantine/tiptap(migration guide) - Recharts 3+ for
@mantine/charts(no migration required)
Namespace types exports
All Mantine components and hooks now provide namespace exports for related types. For example, use-disclosure hook types can now be accessed like this:
Example of using namespace types with Button props type:
New @mantine/schedule package
New @mantine/schedule package provides a complete set of
calendar scheduling components for React applications. It includes multiple view levels,
drag-and-drop event management, and extensive customization options.
Components included:
- Schedule – unified container component that combines all views with built-in navigation and view switching
- DayView – single day view with configurable time slots, all-day event section, current time indicator, and business hours highlighting
- WeekView – weekly calendar grid with time slots, week numbers, weekend day toggling, and multi-day event spanning
- MonthView – monthly calendar grid with event overflow handling, outside days display, and week numbers
- YearView – 12-month year overview organized by quarters with day-level event indicators
- MobileMonthView – mobile-optimized month view with event details panel for the selected day
Key features:
- Drag and drop – drag events to reschedule them across time slots and days. Supports conditional dragging with
canDragEventcallback, and drag-to-select time ranges withwithDragSlotSelect - Multiple interaction modes –
defaultmode enables all interactions (click, drag, navigation),staticmode renders a read-only calendar - Responsive layout –
layout="responsive"automatically switches toYearViewandMobileMonthViewon smaller screens - Custom event rendering – use
renderEventBodyorrenderEventto fully customize how events are displayed in all views - Time configuration – configurable start/end times, time slot intervals, time label formats, and business hours highlighting
- Internationalization – full label customization through the
labelsprop, locale-aware date formatting via dayjs - Click handlers –
onTimeSlotClick,onAllDaySlotClick,onDayClick, andonEventClickfor building interactive scheduling interfaces - Styles API – full support for
classNames,styles, andunstyledprops, along with CSS variables for theming
To get started, follow the getting started guide.
Collapse horizontal orientation
Collapse component now supports horizontal orientation:
use-collapse and use-horizontal-collapse hooks
New use-collapse hook is the hook version of Collapse component.
It allows animation of height from 0 to auto and vice versa.
use-horizontal-collapse works the same way as use-collapse but animates width instead of height:
use-floating-window hook
New use-floating-window hook allows creating floating draggable elements:
FloatingWindow component
FloatingWindow provides component API for use-floating-window hook:
OverflowList component
New OverflowList component displays list of items and collapses the overflowing items into a single element:
Card horizontal orientation
Card component now supports horizontal orientation:
81%
Completed
Project tasks
1887
Completed
447
Remaining
76
In progress
Checkbox.Group and Switch.Group maxSelectedValues
Checkbox.Group and Switch.Group now support maxSelectedValues prop to limit the number of selected values.
When the limit is reached, the remaining controls are disabled and cannot be selected.
Inputs loading state
All Mantine input components based on Input component now support loading prop.
Set loading prop to display a loading indicator. By default, the loader is displayed on the right side of the input.
You can change the position with the loadingPosition prop to 'left' or 'right'. This is useful for async operations like API calls, searches, or validations:
renderPill in MultiSelect and TagsInput
MultiSelect and TagsInput components now support renderPill prop to customize pill rendering:
Clear section mode
All clearable input components now support clearSectionMode prop that determines how the clear button and rightSection are rendered:
'both'(default) – render both the clear button andrightSection'rightSection'– render only the user-suppliedrightSection, ignore clear button'clear'– render only the clear button, ignorerightSection
This prop is supported by Select, Autocomplete, MultiSelect, TagsInput, FileInput, DateInput, DatePickerInput, MonthPickerInput, YearPickerInput, TimePicker, and DateTimePicker.
Marquee component
New Marquee component creates continuous scrolling animation for content:
Scroller component
New Scroller component displays horizontally scrollable content with navigation controls. It supports native scrolling via trackpad, shift + mouse wheel, touch gestures, and mouse drag:
use-scroller hook
New use-scroller hook provides logic for creating custom scrollable containers with navigation controls:
use-form TransformedValues type argument
use-form now supports passing second type argument TransformedValues to define the type of
transformed values returned by form.getTransformedValues and form.onSubmit:
use-form async validation
use-form validation rules can now be async – return a Promise that resolves to an
error message or null. When any rule is async, form.validate(), form.validateField() and
form.isValid() all return promises. The form.validating property is true while any async
validation is in progress, and form.isValidating(path) checks individual fields.
Each rule receives an AbortSignal as the fourth argument. The signal is aborted when a newer
validation supersedes the current one, which you can use to cancel in-flight HTTP requests.
When using async validation with validateInputOnChange, set validateDebounce to avoid
firing an API call on every keystroke:
Generic components
SegmentedControl, Select, MultiSelect,
Chip.Group, Switch.Group, Checkbox.Group and Radio.Group
now support generic value type. You can pass primitive values (numbers, strings, boolean, null)
as the type argument. The generic type is used for value, defaultValue, onChange and other props.
For example, generic type can now be used with SegmentedControl to specify string union:
Combobox virtualization (alpha)
Combobox component now supports virtualization. Virtualization support is currently in alpha stage and the API may change in future releases. You are welcome to try it out and provide feedback.
Example of implementation with useVirtualizedCombobox and react-virtuoso:
Highlight per-term colors
Highlight component now supports custom colors for individual highlight terms.
You can provide an array of objects with text and color properties to assign different colors
to different highlighted terms:
Error: Invalid input. Warning: Check this field. Success: All tests passed.
Highlight whole-word matching
Highlight component now supports wholeWord prop to match only complete words.
When enabled, 'the' will not match 'there' or 'theme':
With whole word matching (wholeWord={true})
The theme is there
Without whole word matching (default)
The theme is there
Pagination and use-pagination startValue
Pagination component and use-pagination hook now support startValue prop
to define the starting page number. For example, with startValue={5} and total={15},
the pagination range will be from 5 to 15:
Pages 5–15 (startValue=5, total=15)
Grid improvements
Grid component no longer uses negative margins for spacing between columns.
Instead, it now uses native CSS gap property, which means you no longer need to use
overflow="hidden" to prevent content overflow caused by negative margins.
Slider vertical orientation
Slider and RangeSlider components now support vertical orientation:
SimpleGrid improvements
SimpleGrid component now supports minColWidth prop to use CSS Grid auto-fill/auto-fit
to automatically adjust the number of columns based on available space and minimum column width.
When minColWidth is set, the cols prop is ignored. Use autoFlow prop to switch between
auto-fill (default) and auto-fit behavior.
1
2
3
4
5
SimpleGrid also now supports autoRows prop to control the size of
implicitly created grid rows:
1
2
3
4
5
BarsList component
New BarsList component displays a list of horizontal bars with names and values. It supports custom colors, auto contrast, value formatting, and custom bar rendering:
Documentation updates
- New Custom components guide explaining how to create custom components with Mantine's styling system
- New Controlled vs Uncontrolled guide explaining differences between controlled and uncontrolled components
- HueSlider and AlphaSlider components now have their own documentation pages
- Uncontrolled documentation and usage with
FormDatasection was added to all inputs components - JsonInput documentation now includes custom serialization example with
superjsonlibrary - Pagination documentation now includes URL synchronization examples for Next.js, react-router-dom and nuqs
- use-form documentation now includes separate examples with all Mantine inputs
Other changes
lightvariant in all components now uses different colors values without transparency to improve contrastmodprop now converts camelCase keys to kebab-case for data attributes in all components@mantine/formpackage no longer exports schema resolvers, use dedicated packages instead@mantine/formvalidation is now natively async –form.validate(),form.validateField()andform.isValid()return promises. Newform.validating,form.isValidating(path),validateDebounceandresolveValidationErroroptions were added.createPolymorphicComponentfunction was renamed to shorterpolymorphicfor convenience- All Mantine components now use
font-weight: 600instead offont-weight: 500for better readability - All Mantine components now support logical margin and padding style props:
mis- margin-inline-startmie- margin-inline-endpis- padding-inline-startpie- padding-inline-end
- Tree component now supports controlled state via
expandedState,selectedStateandcheckedStateprops. - Tree component no longer defines
data-hoveredattribute for hover state, you need to apply hover styles with&:hoverinstead. This change improves rendering performance by resolving this issue. - Collapse component now uses
expandedprop instead ofin - Collapse, NavLink and Accordion.Panel now support
keepMounted={false}prop to unmount collapsed content - Select and MultiSelect components now support primitive value types (numbers, booleans, strings) for data and value
- MultiSelect now supports
onMaxValuesprop, which is called when the user attempts to select more values thanmaxValues - TagsInput component now supports
onMaxTagsprop, which is called when the user attempts to add more tags thanmaxTags - Accordion component now supports
refprop - Text and Anchor components no longer accept
colorprop, usecstyle prop instead - PasswordInput component visibility toggle icon was updated
- Popover and Tooltip components no longer accept
positionDependenciesprop, it is no longer required - TypographyStylesProvider component was renamed to Typography
- Checkbox component now supports
readOnlyandwithErrorStylesprops - Spoiler component:
initialStateprop was renamed todefaultExpandedfor consistency with other components- New
showAriaLabelandhideAriaLabelprops allow customizing ARIA labels
- Checkbox.Group and Switch.Group can now be used in uncontrolled forms and can be accessed through
FormData - ColorPicker component now supports
nameandhiddenInputPropsprops to include color value in uncontrolled form submissions - Dialog now enables
withBorderby default - Pagination component now supports
input-prefix forsizeprop to match input and button sizes - FloatingIndicator component now supports
onTransitionStartandonTransitionEndcallbacks - LoadingOverlay component now supports
onEnter,onEntered,onExitandonExitedcallbacks - Grid component
gutterprop was renamed togapfor consistency with other layout components. NewrowGapandcolumnGapprops allow separate control of row and column spacing. Grid.Col now supportsalignprop for per-column vertical alignment. - Indicator component now supports:
maxValueprop to display{maxValue}+when the label exceeds the maximum valueshowZeroprop (defaulttrue) to control visibility of indicator with label0offsetprop object withxandyproperties for separate horizontal and vertical offsets
- NumberInput component now supports:
onMinReachedandonMaxReachedcallbacksselectAllOnFocusprop to select all text when input is focused
- RingProgress component now supports
sectionGapprop to add visual separation between sections in degreesstartAngleprop to control where the progress starts (0 = right, 90 = bottom, 180 = left, 270 = top)
- List component now supports HTML5 list attributes:
start,reversed, andvalueprops for enhanced semantic HTML support - JsonInput component now supports
indentSpacesprop to control the number of spaces used for formatting JSON - Rating component now supports
allowClearprop to reset rating to 0 by clicking the same value - ScrollArea component now supports
onLeftReachedandonRightReachedcallbacks for horizontal scroll boundaries - Slider and RangeSlider now support hidden marks with
hidden: trueproperty. Hidden marks allow snapping to specific values without displaying them visually, useful withrestrictToMarksprop. - use-tree no longer supports callback state setters for
setExpandedState,setSelectedState, andsetCheckedStatefunctions - use-fullscreen hook was split into two hooks:
useFullscreenElementanduseFullscreenDocument - use-media-query hook no longer includes fallback for old Safari versions (iOS 13 and earlier, released before 2019)
- use-resize-observer now uses the new callback ref approach. The new approach makes hook usable with dynamic node changes. This change might be breaking, validate hook usage in your application.
- use-mouse hook now uses the new callback ref approach to resolve the issue with stale refs. The previous hook functionality was split into two hooks:
use-mouse(for ref) anduse-mouse-position(for document). - use-mutation-observer hook now uses the new callback ref approach. The new approach makes hook usable with dynamic node changes. Additionally, a new
useMutationObserverTargethook was added for observing external target elements. - use-disclosure hook now supports new
sethandler - use-floating-indicator hook now supports
onTransitionStartandonTransitionEndcallbacks @mantine/hookstypes were renamed for consistency:UseScrollSpyReturnType→UseScrollSpyReturnValueStateHistory→UseStateHistoryValueOS→UseOSReturnValue