📣 Dash Mantine Components 0.15.2 Release

We’re thrilled to announce Dash Mantine Components 0.15.2! This release is packed with new components, documentation updates, and fantastic contributions from the community.

Let’s dive into the highlights! :rocket:


:tada: Key Updates in Mantine 7.16.1

This release now uses Mantine 7.16.1, unlocking the latest features from Mantine!


:art: New Components

:deciduous_tree: Tree Component

Display hierarchical data with the new Tree component. A huge shoutout to @Godisemo for contributing this component! :trophy:

:open_book: Explore the Tree Component Documentation

Highlights:

  • Customizable Expand/Collapse Icons

  • Selectable Items with Checkboxes


:bulb: InlineCodeHighlight Component

Highlight inline code snippets with the new InlineCodeHighlight component. Thanks again to @Godisemo for this contribution! :trophy:

:open_book: Check out the InlineCodeHighlight Documentation


:hammer_and_wrench: Additional Component Props

We’ve added new props across several components to enhance their functionality and flexibility. Here are the highlights:

:arrows_counterclockwise: New Props at a Glance

  • disabled prop for individual options on SegmentedControl thanks to first time contributor @petefine
  • type and breakpoints props for Grid and type prop to SimpleGrid thanks to @namakshenas
  • inline prop for Center
  • allowedInitialsColors for Avatar
  • defaultExpanded for CodeHighlightTabs
  • autoComplete for PasswordInput
  • withOverlay and overlayProps for Popover
  • withPages for Pagination
  • type for Carousel
  • restrictToMarks for RangeSlider

:wrench: Prop Examples

Disable prop on SegmentControl

Thanks @petefine for adding this feature and for updating the docs! :trophy:

:open_book: SegmentedControl Documentation

Container Queries

Set type="container" in the SimpleGrid, Grid, and Carousel components to adjust responsive values based on container width rather than viewport width.

Thank you @namakshenas for making this possible! :trophy:


Align Icons with Text

Use dmc.Center(inline=True) to align icons and text seamlessly.

:open_book: Center Component Documentation


Restrict Initial Colors for Avatar

The allowedInitialsColors prop lets you limit the colors for initials in Avatar components.

:open_book: Avatar Documentation

Example: Restrict to blue and red.


Popover with Overlay

Add an overlay behind the dropdown using the withOverlay prop. Customize it further with overlayProps.

:open_book: Popover Documentation


Pagination Controls

Hide page controls using withPages=False for a cleaner UI.

:open_book: Pagination Documentation

Here is the standard Pagination withPages=True


RangeSlider: Restrict to Marks

Enable restrictToMarks=True to limit user selections to specific marks.

:open_book: Slider Documentation


CodeHighlight with Tabs and Default Expanded

The defaultExpanded prop can be used to set the initial expanded or collapsed state to CodeHighlightTabs component.

:open_book: See this example in the CodeHighlight documentation.


:hammer_and_wrench: Fixes and Improvements

:star2: Mantine Themed Plotly Templates

See more information on Plotly figure templates with a Mantine theme in new theme section of the docs.

This release updates the range slider button styling in the mantine_dark template for improved readability.

See this example on PyCafe

template=“mantine_dark”

template=“mantine_light”


:books: Documentation Enhancements

We’ve revamped the Themes section in the documentation:

See this Dash Forum Post for an introduction on how to set themes globally using the theme prop in the MantineProvider.

Explore the new DMC Theme Builder app for an interactive demo:


:tada: New Tips & Tricks

Discover new Tips & Tricks in the GitHub Discussions section, including FAQs and minimal examples.


New on DMC PyCafe account

Browse lots of complete, minimal examples you can run and edit in your browser. PyCafe - 21 projects by dash.mantine.components

image


:raised_hands: Thank You, Contributors!

:medal_military: New Contributors:

:star2: Returning Contributors

Thanks you also to @alexcjohnson for reviewing all the pull requests and providing invaluable feedback :slightly_smiling_face:

11 Likes

From a mere user: Thanks for the work you are putting into this.

1 Like

This is brilliant work folks!

2 Likes