Back to Mantine

7 12 0

apps/mantine.dev/src/pages/changelog/7-12-0.mdx

9.3.14.2 KB
Original Source

import { NotificationsDemos, SemiCircleProgressDemos, TreeDemos, } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';

export default Layout(MDX_DATA.Changelog7120);

Notifications at any position

It is now possible to display notifications at any position on the screen with @mantine/notifications package:

<Demo data={NotificationsDemos.position} />

Subscribe to notifications state

You can now subscribe to notifications state changes with useNotifications hook:

<Demo data={NotificationsDemos.store} />

SemiCircleProgress component

New SemiCircleProgress component:

<Demo data={SemiCircleProgressDemos.usage} />

Tree checked state

Tree component now supports checked state:

<Demo data={TreeDemos.checked} />

Disable specific features in postcss-preset-mantine

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].

tsx
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,
    },
  },
};

Help Center updates

Other changes

  • use-interval hook now supports autoInvoke option to start the interval automatically when the component mounts.
  • use-form with mode="uncontrolled" now triggers additional rerender when dirty state changes to allow subscribing to form state changes.
  • ScrollArea component now supports onTopReached and onBottomReached props. The functions are called when the user scrolls to the top or bottom of the scroll area.
  • Accordion.Panel component now supports onTransitionEnd prop that is called when the panel animation completes.