RTL support improvements
- Emotion options on MantineProvider now supports dynamic values. This feature allows to create dynamic direction changes.
@mantine/ssrpackage now supports RTL with Next.js and any other ssr environment- All components were tested to work correctly with stylis-plugin-rtl
- Mantine theme object now includes
dirproperty which must be set tortlto support all features
New features
TimeInput component now supports 12h format and empty initial state:
:
:
Table component now supports setting vertical and horizontal spacing:
| Position | Name | Symbol | Mass |
|---|---|---|---|
| 6 | Carbon | C | 12.011 |
| 7 | Nitrogen | N | 14.007 |
| 39 | Yttrium | Y | 88.906 |
| 56 | Barium | Ba | 137.33 |
| 58 | Cerium | Ce | 140.12 |
HorizontalSpacing
xs
sm
md
lg
xl
VerticalSpacing
xs
sm
md
lg
xl
FontSize
xs
sm
md
lg
xl
ScrollArea component now supports subscribing to scroll position with onScrollPositionChange handler:
Scroll position:
{ x: 0, y: 0 }Button component now supports new subtle variant:
New hooks
- use-validated-state – useState with state validation and capturing last valid value
- use-event-listener – add event listener to an element using ref
Other changes
- Grid.Col component no longer requires to set
span, it is set to Gridcolumnsby default - Dropzone component now supports
onRejectcallback which is called when user tries to drop files that do not meet size or mime type requirements - Stepper component now supports
allowStepSelectprop onStepper.Stepcomponent which can be used to prevent user from reaching next steps before completing previous - Accordion component now supports changing headings level with
orderprop - Tabs component now supports getting tab keys in
onTabChangehandler - Slider default label transition is now set to
0to make component feel more responsive - Portal now supports setting
targetwith selector instead of element - Modal and Drawer components now support
targetprop to specify Portal target container - TransferList component now supports
limitprop that can be used to improve performance of large data sets - Modals manager now supports
...othersprops inmodals.openContextModalhandler - Select and MultiSelect components now support new
selectOnBlurprop - Transition now supports
exitDurationprop to specify unmount transition duration - Timeline now supports
reverseActiveprop to reverse active items direction - Menu now supports
autosize - use-move hook now supports
rtldirection - RichTextEditor now supports readonly state and code format
- All inputs components that are based on Input now support
iconWidthprop
3.5.0 – 3.6.0 bug fixes
- Fix incorrect default
shouldCreatelogic in creatable Select - Fix incorrect border-radius in TransferList component
- Add color style to UnstyledButton in dark theme
- Fix incorrect Menu body background color in dark theme
- Fix incorrect focus management in DatePicker which resulted in closing dropdown when anything inside was clicked
- Fix incorrect position calculation for SegmentedControl when scale transform is applied to parent node
- Fix Slider initial value not being clamped with min/max
- Fix incorrect value set in RangeSlider when user interacted with slider after value was force updated
- Fix possible permanent placeholder after hydration in Image component
- Fix jumping items in dropdown when item is selected in Select, MultiSelect and Autocomplete components, this fix is also applied to dropdowns with transitions
- Fix Slider and RangeSlider components thumbs and marks overflowing parent element when is the same as min/max
- Fix value not being clamped in DatePicker with allowed free input, now value is clamped on blur