npm @mantine/core 2.0.0

latest releases: 7.14.1, 7.14.0, 7.13.5...
3 years ago

Mantine 2.0.0

View changelog with demos on Mantine website

Breaking changes

  • All inputs no longer support inputStyle and inputClassName props, this feature was replaced by Styles API
  • Burger component no longer uses colors from theme, use
    hex color value instead
  • Select component was renamed to NativeSelect
  • ElementsGroup, Hr and CardsGrid components are replaced and no longer exported from @mantine/core package
  • All inputs variant is set by default to filled in dark theme

New theming options

  • @mantine/core package now exports GlobalStyles and NormalizeCSS components to include global styles
  • New Styles API allows you to style any part of Mantine components with inline styles or classes

New @mantine/dates package

@mantine/dates s a new package that includes date pickers and calendars, it includes components:

New @mantine/prism package

New @mantine/prism package exports Prism component that allows you to highlight code with prism-react-renderer and your theme colors just like in Mantine docs.

New @mantine/hooks hooks

  • use-did-update – useEffect replacement when you do not want hook to be called on mount
  • use-isomorphic-effect – switch between useEffect during server side rendering and useLayoutEffect after hydration
  • use-force-update – force component to rerender
  • use-toggle – switch state between two values
  • use-uncontrolled – manage state for both controlled and uncontrolled components
  • use-window-scroll – get current scroll position and handler to scroll to given position

New @mantine/core components

@mantine/core changes

  • Tabs component now supports unstyled and pills variants
  • All inputs now support size prop
  • Drawer component now support title and close button
  • Tooltip component now displays tooltip on focus by default
  • Menu component now closes on scroll to prevent incorrect focus handling
  • Menu component now supports hover trigger
  • 3 new premade transitions were added to Transition component: scale-y, scale-x and scale
  • @mantine/core now exports new UnstyledButton component that can be used to create custom buttons

Don't miss a new core release

NewReleases is sending notifications on new releases.