Styled components support
You can now use styled components syntax with @emotion/styled package:
- It is fully compatible with Mantine server side rendering (
@mantine/next
,@mantine/remix
andgatsby-plugin-mantine
packages) - Mantine theme can now be used in component styles with no extra setup
- Components created with
@emotion/styled
will use Mantine's emotion cache
withAsterisk prop
All inputs that are based on Input and Input.Wrapper components now
support withAsterisk
prop, it allows to display required asterisk without adding required
attribute
to the input element. It is useful when you do not need browser validation in your forms but still want
to display the asterisk.
Progress and RingProgress tooltips
Progress and RingProgress components now support floating tooltips in sections:
Title component changes
Title now supports setting size
different from order
:
H3 heading with h1 font-size
H1 heading with h4 font-size
H1 heading with 12px size
It also now supports all Text component props:
H3 heading aligned to center with 100 font-weight
Underlined h4 heading with blue color
Italic dimmed h5 heading
@mantine/form changes
New form.isValid
handler performs form validation with given validation functions, rules object or schema, but unlike
form.validate
it does not set form.errors
and just returns boolean value that indicates whether form is valid.
form.resetDirty
will now memoize form values and compare all next changes with stored values instead of initialValues
:
Form rules now receive rule path as third argument:
Custom prism themes
Prism component now supports custom themes with getPrismTheme
prop:
Other changes
- ActionIcon component now support
gradient
variant - Avatar component now supports
variant
prop - Carousel component now supports
height="100%"
- Grid.Col now supports
order
prop, it can be used to reorder columns when certain breakpoint is reached - Tabs component now supports
keepMounted
prop. If it is set tofalse
then components rendered insideTabs.Panel
will be unmounted when tab is not active. - DatePicker and DateRangePicker components now have
withinPortal
prop set tofalse
by default to match other components