Dash Mantine Components v3: Exploring the New Data Display Features

This post highlights some of the new and improved Data Display components in Dash Mantine Components v3.
We’ll highlight two new components Marquee and RollingNumber, plus new features for Card, RingProgress, Accordion, Timeline, Indicator, and Notification.

Be sure to check out the DMC v3 Release Announcement for a complete overview of all the new components and features.

We’ll use a Live Event Dashboard as an example, adding features for announcements, attendance statistics, event schedules, and notifications.

Getting started

Here is a minimal app to get started with DMC v3. It shows how to:

  • Set React 19, which is required by DMC v3.
  • Optionally restore the v8 light variant if you prefer the appearance from DMC v2. The new v9 light variant has more contrast, which some users may find easier to read.
  • Use MantineProvider to configure the theme and color scheme.
  • Set the color scheme to dark. All DMC components support both light and dark modes.
  • Change the default blue accent color to green.

We’ll add each example to AppShellMain in the sections below.

import dash_mantine_components as dmc
from dash import Dash, _dash_renderer, Input, Output, State
_dash_renderer._set_react_version("19.2.4")

app = Dash()

app.layout = dmc.MantineProvider(
    children = dmc.AppShell(
        header={"height": 80},
        children=[
            dmc.AppShellHeader("Your header"),
            dmc.AppShellMain("Your page content"),
        ]
    ),
    forceColorScheme="dark",
    theme={"primaryColor": "green"},
    
    # Add this if you prefer the v8 light variant
    # useV8CssVariablesResolver=True
)

if __name__ == "__main__":
    app.run(debug=True)

f-marquee

New Marquee component

Use the new Marquee component to display scrolling announcements, reminders, and event updates without taking up much space.

It is also a simple way to make the dashboard feel active, even when users aren’t interacting with it.

Here is the Marquee component used in the header shown above:

dmc.Marquee(
    [
        dmc.Text("Keynote starts in 10 minutes"),
        dmc.Text("Workshop registration is now open"),
        dmc.Text("Lunch is being served in the main hall"),
        dmc.Text("Schedule update: Room B is now Room C"),
    ],
    gap="xl",
    duration=35000
)

Marquee supports customizable scrolling direction, speed, and spacing between items. You can also pause the animation on hover and control how content repeats.

Another use for Marquee is a sponsors page on our Live Event Dashboard. We could display two rows of sponsor logos scrolling in opposite directions. You can see how effective this type of display can be on the Plotly home page, where customer logos are displayed.

Creating this effect with Marquee is straightforward:

dmc.Marquee(
    # list of logos
),
dmc.Marquee(
    # list of logos,
    reversed=True
),

Thanks @budescode for adding this component @Emmanuel_Omonbude

Feature preview: RollingNumber in DMC v3.1

The new RollingNumber component, coming in DMC v3.1, animates value changes with rolling digit transitions. Each digit independently rolls to its new position when the value changes.

This works well with live data. You can use it with streaming callbacks in Dash 4.5 or WebSocket-based updates in Dash 4.2.

Thanks @budescode for adding this component

Here is an example of a simulated live update to the attendee count:

f-rolling-number

dmc.Box(
    [
        dcc.Interval(id="attendee-interval", interval=3000),
        dmc.Card(
            [
                dmc.Text("Total Attendees", size="sm", pb="xs"),
                dmc.Group([
                    dmc.RollingNumber(   # New component in v3!
                        id="attendee-count",
                        value=500,
                    ),
                    dmc.Badge("live", color="green", variant="dot"),
                ])
            ],
        ),
    ], m="lg", w=160
)


@app.callback(
    Output("attendee-count", "value"),
    Input("attendee-interval", "n_intervals"),
    State("attendee-count", "value"),
)
def update_attendees(_, current):
    return current + random.randint(1, 50)

New features for Card and RingProgress

Card now supports horizontal orientation, making it easier to place content side by side.

RingProgress adds sectionGap to separate sections and startAngle to control where the progress indicator begins.

dmc.Card(
    orientation="horizontal",  #new prop in v3
    w=400,
    m="lg",
    children=[
        dmc.RingProgress(
            size=120,
            thickness=14,
            sectionGap=5,  # new prop in v3
            startAngle=0,  # new prop in v3
            sections=[
                {"value": 60, "color": "green"},
                {"value": 30, "color": "cyan"},
                {"value": 10, "color": "violet"},
            ],
        ),
        dmc.Stack(
            gap="xs",
            children=[
                dmc.Text("Attendees by Ticket Type", fw=600),
                dmc.Group(
                    gap="xs",
                    children=[
                        dmc.ThemeIcon(size="xs", color="green"),
                        dmc.Text("General: 60%", size="sm"),
                    ],
                ),
                dmc.Group(
                    gap="xs",
                    children=[
                        dmc.ThemeIcon(size="xs", color="cyan"),
                        dmc.Text("VIP: 30%", size="sm"),
                    ],
                ),
                dmc.Group(
                    gap="xs",
                    children=[
                        dmc.ThemeIcon(size="xs", color="violet"),
                        dmc.Text("Speaker: 10%", size="sm"),
                    ],
                ),
            ],
        ),
    ],
)


Accordion: Preventing all items from collapsing

Accordion now supports disableCollapse. In single mode (multiple=False), the currently open item cannot be collapsed by clicking it again. Use value to specify which item should be open initially.

For an event dashboard, this can be useful for a FAQ section. Users can switch between questions, but one answer always remains visible:

f-accordion

dmc.Card(
    children=[
        dmc.Text("Frequently Asked Questions", fw=600, mb="sm"),
        dmc.Accordion(
            value="wifi",
            disableCollapse=True,  # new prop in v3
            children=[
                dmc.AccordionItem(
                    value="wifi",
                    children=[
                        dmc.AccordionControl("Is Wi-Fi available?"),
                        dmc.AccordionPanel(
                            dmc.Text(
                                "Yes. Connect to Event-WiFi using the "
                                "password provided at registration.",
                                size="sm",
                            ),
                        ),
                    ],
                ),
                dmc.AccordionItem(
                    value="parking",
                    children=[
                        dmc.AccordionControl("Where can I park?"),
                        dmc.AccordionPanel(
                            dmc.Text(
                                "Event parking is available in the "
                                "North Garage. Show your event badge "
                                "for discounted parking.",
                                size="sm",
                            ),
                        ),
                    ],
                ),
                dmc.AccordionItem(
                    value="recordings",
                    children=[
                        dmc.AccordionControl("Will sessions be recorded?"),
                        dmc.AccordionPanel(
                            dmc.Text(
                                "Yes. Recordings will be available to "
                                "registered attendees after the event.",
                                size="sm",
                            ),
                        ),
                    ],
                ),
                dmc.AccordionItem(
                    value="food",
                    children=[
                        dmc.AccordionControl("Are meals included?"),
                        dmc.AccordionPanel(
                            dmc.Text(
                                "Lunch and refreshments are included "
                                "with your conference registration.",
                                size="sm",
                            ),
                        ),
                    ],
                ),
            ],
        ),
    ],
)

Timeline: Opposite and alternate content

TimelineItem now supports the opposite property, which displays additional content on the opposite side of the timeline. When used, the timeline automatically switches to a centered layout.

Use alternate on individual items to switch the positions of the main and opposite content.

In our event dashboard, this works well for displaying the schedule, with session details on one side and times, locations, or speaker information on the other.

dmc.Card(
    children=[
        dmc.Title("Today's Schedule", order=2, ta="center", mb="sm"),
        dmc.Timeline(
            active=3,
            bulletSize=12,
            lineWidth=2,
            children=[
                dmc.TimelineItem(
                    title="Opening Keynote",
                    opposite=dmc.Text("9:00 AM", size="sm", c="dimmed"),
                    children=[
                        dmc.Text("The Future of AI", size="sm"),
                        dmc.Text("Main Auditorium", size="xs", c="dimmed"),
                    ],
                ),
                dmc.TimelineItem(
                    title="Morning Break",
                    opposite=dmc.Text("10:00 AM", size="sm", c="dimmed"),
                    alternate=True,
                    children=[
                        dmc.Text("Coffee and refreshments", size="sm"),
                        dmc.Text("Exhibition Hall", size="xs", c="dimmed"),
                    ],
                ),
                dmc.TimelineItem(
                    title="Building with Dash",
                    opposite=dmc.Text("10:30 AM", size="sm", c="dimmed"),
                    children=[
                        dmc.Text("Hands-on workshop", size="sm"),
                        dmc.Text("Room 201 · Alex Morgan", size="xs", c="dimmed"),
                    ],
                ),
                dmc.TimelineItem(
                    title="Lunch",
                    opposite=dmc.Text("12:00 PM", size="sm", c="dimmed"),
                    alternate=True,
                    children=[
                        dmc.Text("Lunch and networking", size="sm"),
                        dmc.Text("Garden Terrace", size="xs", c="dimmed"),
                    ],
                ),
            ],
        ),
    ],
)

Indicator improvements

Indicator now supports:

  • maxValue to display a capped label, such as 99+.
  • showZero to control whether an indicator with a label of 0 is visible. Defaults to True.
  • offset with separate x and y values for more precise positioning.

In our event dashboard, we could use an indicator to show how many people have signed up for each keynote session.

dmc.Group(
    [
        dmc.Indicator(
            dmc.Avatar(
                size="lg",
                radius="xl",
                src="https://raw.githubusercontent.com/mantinedev/mantine/master/.demo/avatars/avatar-1.png",
            ),
            inline=True,
            label=50,
            maxValue=99,  # new prop in 3 
        ),
        dmc.Indicator(
            dmc.Avatar(
                size="lg",
                radius="xl",
                src="https://raw.githubusercontent.com/mantinedev/mantine/master/.demo/avatars/avatar-2.png",
            ),
            inline=True,
            label=100,
            maxValue=99,
        ),
        dmc.Indicator(
            dmc.Avatar(
                size="lg",
                radius="xl",
                src="https://raw.githubusercontent.com/mantinedev/mantine/master/.demo/avatars/avatar-3.png",
            ),
            inline=True,
            label=1000,
            maxValue=999,
        ),
    ]
)

Notification improvements

Notification now supports swipe dismissal, auto-close progress, stacked layout, and priority.

  • Swipe dismissal: dismiss notifications by dragging left or right, or by horizontal scrolling while hovering. These behaviors can be disabled on NotificationContainer, and individual notifications can opt out with allowClose=False.
  • Auto-close progress: withAutoCloseProgress displays a progress line showing the time remaining before a notification closes. The line pauses with the timer and uses the notification color. Set a default on the container or override it for individual notifications.
  • Stacked layout: layout="stacked" displays the latest notification in front, with older notifications peeking out behind it.
  • Priority: notifications with higher priority take visible slots when the active notification limit is reached. Equal priorities retain insertion order. The default priority is 0.

In our event dashboard, notifications with the stacked layout keep attendees informed about schedule changes, reminders, and other important updates.

This example shows a notification with the new auto-close progress that can be used to confirm registration in our app.

f-notifications1


import dash_mantine_components as dmc
from dash import Dash, _dash_renderer, Input, Output, State, callback, no_update
from dash_iconify import DashIconify
_dash_renderer._set_react_version("19.2.4")

app = Dash()

appshellheader = dmc.AppShellHeader(
    px="md",
    children=dmc.Group(
    justify="space-between",
    h="100%",
    children=[
        dmc.Group(
            gap="xs",
            children=[
                dmc.ThemeIcon(
                    "EV",
                    variant="light",
                    size="xl",
                ),
                dmc.Stack(
                    gap=0,
                    children=[
                        dmc.Text("EVENT CENTRAL", fw=700, size="lg"),
                        dmc.Text(
                            "Annual Technology Conference",
                            size="xs",
                            c="dimmed",
                        ),
                    ],
                ),
            ],
        ),
        dmc.Badge("LIVE", variant="dot"),
    ],
))




app.layout = dmc.MantineProvider(
    children = dmc.AppShell(
        header={"height": 80},
        children=[
            appshellheader,
             dmc.AppShellMain([
                 dmc.NotificationContainer(id="notification-container"),
                 dmc.Button("Register for Workshop", id="register-workshop", m="lg"),
             ])
        ]
    ),
    forceColorScheme="dark",
    theme={"primaryColor": "green"},
    useV8CssVariablesResolver=True
)



@callback(
    Output("notification-container", "sendNotifications", allow_duplicate=True),
    Input("register-workshop", "n_clicks"),
    prevent_initial_call=True,
)
def register(n_clicks):
    if not n_clicks:
        return no_update

    return [dict(
        title="Registration confirmed",
        id="workshop-registration",
        position="bottom-left",
        action="show",
        message="You're registered for the Dash workshop at 10:30 AM in Room 201.",
        color="green",
        icon=DashIconify(icon="ic:round-check-circle"),
        withAutoCloseProgress=True,
    )]

if __name__ == "__main__":
    app.run(debug=True)




Auto-close progress is such a nice addition to give users a clearer understanding of the notif process and know if they need to dismiss or can just wait for it to go away.

What does “The line pauses with the timer” mean?

If you hover over the notification the timer and the progress line is paused. This is configurable:

Here is more info from the docs:

Auto close progress

Set withAutoCloseProgress prop on the NotificationContainer component to display a progress line at the bottom of
every notification that auto closes. The line fills up over the auto close timeout and reaches 100% right before the notification is closed:

dmc.NotificationContainer(withAutoCloseProgress=True)

The NotificationContainer prop sets the default for all notifications, it can be overridden for individual notifications
with the withAutoCloseProgress property in sendNotifications prop.

Note that:

  • The progress line is not displayed for notifications with autoClose=False
  • The progress line fades out when the auto close timer is paused (for example, when the notification is hovered) and fades back in, starting over, when the timer is restarted
  • The progress line uses notification color
  • Use progress Styles API selector of the Notifications component to customize the line, for example, to change its height or color
import dash_mantine_components as dmc
from dash import Output, Input, html, callback, no_update
from dash_iconify import DashIconify


component = html.Div([
    # Place one NotificationContainer in app.layout)
    dmc.Button("Show Notification", id="notification-progress-show")

])

@callback(
    Output("notification-container", "sendNotifications", allow_duplicate=True),
    Input("notification-progress-show", "n_clicks"),
    prevent_initial_call=True,
)
def show(n_clicks):
    if n_clicks is None:
        return no_update
    return [dict(
        title="Hey there!",
        id="show-notify",
        action="show",
        message="Notifications in Dash, Awesome!",
        icon=DashIconify(icon="ic:round-celebration"),
        withAutoCloseProgress=True
    )]

Pause auto close on hover

By default, hovering over any notification pauses the auto close timer of all visible notifications. You can change this behavior with the pauseResetOnHover prop:

  • pauseResetOnHover=“all” (default) – pauses auto close for all notifications when any notification is hovered
  • pauseResetOnHover=“notification” – pauses auto close only for the hovered notification
dmc.NotificationContainer(pauseResetOnHover="notification")

Try the example live: