8.x → 9.x migration guide
use-form TransformValues type
The second generic type of the useForm hook is now the type of transformed values
instead of the transform function type. New usage example:
Text color prop
The color prop of the Text and Anchor components was removed.
Use the c style prop instead:
Form resolvers
The @mantine/form package no longer exports schema resolvers; use dedicated packages instead:
Example with 8.x:
Example with 9.x:
Async form validation
form.validate(), form.validateField() and form.isValid() now return promises. If your code
uses return values from these methods, you need to await them:
Validation rules now receive an AbortSignal as the fourth argument. Rules can be async –
return a Promise<ReactNode | null> instead of ReactNode | null:
New properties and options:
form.validating–truewhile any async validation is runningform.isValidating(path)–truewhile a specific field is being validatedvalidateDebounceoption – debounces field-level validation triggered byvalidateInputOnChange/validateInputOnBlurresolveValidationErroroption – custom function to resolve validation errors from rejected promises
Note:
form.onSubmitdoes not require changes – it already handles the async validation internally and calls the success/error callbacks after validation completes.
TypographyStylesProvider
- The TypographyStylesProvider component was renamed to Typography:
Popover and Tooltip positionDependencies prop
The Popover and Tooltip components no longer accept the positionDependencies prop; it is no longer required
– the position is now calculated automatically.
use-fullscreen hook changes
The use-fullscreen hook was split into two hooks: useFullscreenElement and useFullscreenDocument.
This change was required to fix a stale ref issue in the previous implementation.
New usage with the document element:
New usage with a custom target element:

use-mouse hook changes
The use-mouse hook was split into two hooks: useMouse and useMousePosition.
This change was required to fix a stale ref issue in the previous implementation.
Previous usage with the document element:
New usage with document:
Mouse coordinates { x: 0, y: 0 }
use-mutation-observer hook changes
The use-mutation-observer hook now uses the new callback ref approach. This change was required to fix stale ref issues and improve compatibility with dynamic node changes.
Previous usage (8.x):
New usage (9.x):
Rename hooks types
@mantine/hooks types were renamed for consistency; rename them in your codebase:
UseScrollSpyReturnType→UseScrollSpyReturnValueStateHistory→UseStateHistoryValueOS→UseOSReturnValue
Collapse in -> expanded
The Collapse component now uses the expanded prop instead of in:
Spoiler initialState -> defaultExpanded
The Spoiler component's initialState prop was renamed to defaultExpanded for consistency with other Mantine components:
Grid gutter -> gap
The Grid component gutter prop was renamed to gap for consistency with other layout components
(like Flex and SimpleGrid). Additionally, new rowGap and columnGap props
were added to allow separate control of vertical and horizontal spacing:
Grid overflow="hidden" no longer required
The Grid component no longer uses negative margins for spacing between columns.
It now uses native CSS gap property, so you can safely remove overflow="hidden" from your
Grid components — it is no longer needed to prevent content overflow: