apps/mantine.dev/src/pages/changelog/7-12-0.mdx
import { NotificationsDemos, SemiCircleProgressDemos, TreeDemos, } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.Changelog7120);
It is now possible to display notifications at any position on the screen with @mantine/notifications package:
<Demo data={NotificationsDemos.position} />You can now subscribe to notifications state changes with useNotifications hook:
New SemiCircleProgress component:
<Demo data={SemiCircleProgressDemos.usage} />Tree component now supports checked state:
<Demo data={TreeDemos.checked} />You can now disable specific features of the postcss-preset-mantine
by setting them to false in the configuration object. This feature is available starting from
[email protected].
module.exports = {
'postcss-preset-mantine': {
features: {
// Turn off `light-dark` function
lightDarkFunction: false,
// Turn off `postcss-nested` plugin
nested: false,
// Turn off `lighten`, `darken` and `alpha` functions
colorMixAlpha: false,
// Turn off `rem` and `em` functions
remEmFunctions: false,
// Turn off `postcss-mixins` plugin
mixins: false,
},
},
};
Component.extend usage in server components.input selector is not used for actual input element.Text component.autoInvoke option to start the interval automatically when the component mounts.mode="uncontrolled" now triggers additional rerender when dirty state changes to allow subscribing to form state changes.onTopReached and onBottomReached props. The functions are called when the user scrolls to the top or bottom of the scroll area.onTransitionEnd prop that is called when the panel animation completes.