@mantine/prism changes
Prism component now uses ScrollArea instead of native browser scrollbars:
With ScrollArea component (default):
With native scrollbars:
<p>Long code that will force Prism to have a horizontal scrollbar, by default, scroll behavior is handled by ScrollArea component, but it can be changed to native browser scrollbars</p>
Prism now supports organizing code with tabs:
NumberInput component improvements
NumberInput component now supports the following new features:
- decimal separator configuration
- value increment/decrement when user clicks and holds up/down controls
Step the value when clicking and holding the arrows
Ste value will increase incrementally when control is hold
New features
RingProgress component now supports round caps:
Stepper component now supports Stepper.Completed to display content after final step is completed:
Step 2 content: Verify email
Progress component now supports labels and animations:
Switch component now supports inner labels:
RichTextEditor now supports mentions:
TransferList now supports items grouping:
Other changes
- New use-element-size hook – subscribe to element width and height with ResizeObserver, simpler alternative to use-resize-observer
- Select component now has an option to enable active item deselection when user clicks on active item
- Skeleton component now supports animations disabling
- Alert, Tooltip and Notification components now support
radiusprop - Alert component now supports 3 variants: filled, light and outline
- Center component is now polymorphic, it supports
componentprop - Grid component now exposes
Colcomponent asGrid.Col - Progress and RingProgress components now support setting colors with css color values instead of allowing only values from
theme.colors - Modal component now has an option to disable closing when escape key is pressed with
closeOnEscape={false} @mantine/corepackage now exportsMantineProviderPropstype@mantine/hookspackage now exportsUseFormtype
3.4.0 - 3.5.0 bug fixes
- Fix incorrect click outside events handling in Modal and Drawer components
- Fix incorrect max-width calculated for Group with falsy children
- Fix incorrect animations applied to Collapse component with
animateOpacityprop set to false - Fix HueSlider and AlphaSlider components breaking when used without
sizeprop - Fix
sizeprop not applied to Divider with label - Fix
onChangefunction called with incorrect precision in NumberInput component - Fix Linux detected as undetermined is use-os hook
- Fix incorrect MediaQuery component
largerThanandsmallerThanprops handling (breaking bug fix) - Fix incorrect DateRangePicker types for strict TypeScript mode
- Fix unexpected vertical scrollbars in TransferList component
- Fix unexpected onChange function called onBlur in DatePicker component
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback