Repository navigation
Releases
v2.9.2 - brand tone fixes, MCardHeader action, new component tokens
Nothing to change in your code unless you use tone="brand", which arrived in 2.9.1. Outside that tone every new prop and token is opt-in, and unset everything looks as in 2.9.1.
Basic users: 2.9.1 was not published on npm, so this is the first Basic version with the 2.9.1 changes. They are listed at the end.
Changed (tone="brand" only)
- MSurface and MCard: no frame by default,
outlinedrestores it. MCardFinance on brand has no border.
Fixed
- Form fields on
tone="brand"follow the on-colour in both themes, so inputs no longer show white on white. The scope overrides--mineral-input-bg,--mineral-option-*-bgand--mineral-neutral-rgb. Portaled popovers keep the theme. - Badges in the brand scope always use the on-colour and ignore
--mineral-badge-text-*.
Added
- MCardHeader: new
actionslot at the end of the header, with theMCardHeaderPropstype. --mineral-surface-brand-action-bgand--mineral-surface-brand-action-textset the filled buttons in the brand scope.--mineral-table-body-bgon MDataTable, also for tables on brand in the light theme.--mineral-tabs-accent-rgbon MTabs sets the active tab, hover and focus.--mineral-sidebar-item-hover-bgand--mineral-sidebar-item-hover-texton MSidebar.
Note: padded outranks px and py on every tone, so use padded={false} with them.
Also in this version for Basic (from 2.9.1)
- MReveal: elements taller than five viewports never showed. They now also reveal once they cross the viewport centre.
- MBottomNav: new fixed app navigation bar for phones, with MAppShell support through a direct child or the
bottomNavslot. - MSurface, MCard and MCardFinance:
tone="brand", set with--mineral-surface-brand-bgand--mineral-surface-brand-on-rgb. --mineral-card-finance-bg,--mineral-card-widget-bg,--mineral-card-tile-bgand--mineral-stat-value-color.
Full list with defaults: https://mineralui.io/docs/theming
v2.9.1 - MBottomNav, brand tone, card background tokens, MReveal fix
Nothing to change in your code: every new prop and token is opt-in, and unset everything looks as in 2.9.0. The one behaviour change is the MReveal fix below.
Fixed
- MReveal: elements taller than five viewports never showed, because the reveal waited for 20% of the element. It now also reveals once an element crosses the viewport centre, so tall sections always show.
once={false},trigger="mount",prefers-reduced-motionand shorter elements behave as before.
Added
- MBottomNav: new component in Basic and Pro. A fixed app navigation bar for phones, as a
navwitharia-current, not a tablist. Items take icons, count or dot badges, links or router components, and scroll sideways when they do not fit. Honours the safe area. Public components: 178 → 179. - MAppShell: a direct MBottomNav child or the new
bottomNavslot renders outside the main column, and.app-mainkeeps content clear of the bar through--mineral-bottom-nav-height, which is 0 without a bar. - MSurface, MCard and MCardFinance:
tone="brand"fills the surface with its colour and moves everything inside to an on-colour. Set it with--mineral-surface-brand-bg(a gradient works) and--mineral-surface-brand-on-rgb. White on the default primary is about 2.8:1, so check the contrast of small text. - Card background tokens:
--mineral-card-finance-bg,--mineral-card-widget-bg,--mineral-card-tile-bg. They fall back to the current backgrounds. - MCardStat:
--mineral-stat-value-color.
Full list with defaults: https://mineralui.io/docs/theming
v2.9.0 - Component tokens, scrolling tabs, day schedule timeline height
Minor release. Nothing to change in your code: every new token and prop is opt-in, and unset everything looks as in 2.8.3. The one visual change is the MTabs fix.
Fixed
- MTabs: a long horizontal strip now scrolls inside the tab list instead of squeezing its labels. Triggers keep their width and stay on one line, and the active tab scrolls into view when it changes (only the list moves, never the page).
fullWidthand vertical tabs are unchanged.
Added
- MCard:
--mineral-card-bg,--mineral-card-border,--mineral-card-shadow,--mineral-card-header-bg,--mineral-card-header-min-height. They also reach what is built on MCard, except.card-widget,.card-financeand.card-tile. - MCardDaySchedule:
titleLevelsets the heading level (default 4).timelineMaxHeightscrolls a long timeline inside the card, as a focusable region. - MSidebar:
--mineral-sidebar-bg,--mineral-sidebar-text,--mineral-sidebar-item-active-bg,--mineral-sidebar-item-active-text. - MNavbar:
--mineral-navbar-bg,--mineral-navbar-text,--mineral-navbar-shadow. - MDataTable:
--mineral-table-head-bg,--mineral-table-head-text, in both themes. - MContainer:
--mineral-container-widesets the width ofsize="wide". - MCardStat:
--mineral-stat-value-size,--mineral-stat-icon-bg,--mineral-stat-icon-color. - MBadge:
--mineral-badge-bg-opacityand one--mineral-badge-text-<colour>token per colour. - MButton:
--mineral-filled-textfor the text of filled buttons.
Full list with defaults: https://mineralui.io/docs/theming
v2.8.3 - Sidebar language switch layout
Patch release. Nothing to change in your code.
- Pro: MLanguageSwitch
variant="button" size="sidebar"shows the flag on top and the code below, centred in the square, as documented (in 2.8.0–2.8.2 they sat side by side). If you hid the code withshowCode={false}to work around it, you can drop that.
v2.8.2 - Translatable timeline event actions
Patch release. Nothing to change in your code.
- Pro: MTimelineBoard reads the label of the event actions button from MI18n (
mineralui.timelineBoard.eventActions, default "Event actions");eventActionsLabelstill overrides it.
v2.8.1 - Language switch spacing
Patch release. Nothing to change in your code.
- Pro: MLanguageSwitch leaves a small gap between the flag and the language code (it touched in 2.8.0). Other buttons are not affected.
v2.8.0 - Language switch, floating panel, hero, big gradient buttons
Minor release. Nothing to change in your code — every option is new and the defaults look as before.
- MHero: a hero section with an image or a tilted screenshot on a gradient,
scrim,hue/color,minHeightandalign. - MFloatingPanel: a non-modal panel that floats over a scene on the left or right, collapsible, with optional backdrop blur.
- MButton:
size='2xl'for a large call to action andvariant='gradient'(themeable via--mineral-button-gradientand--mineral-button-glow). - MSidebar:
indicator='bar'marks the active item with an accent bar; item and icon size are themeable tokens for icon rails. - MI18n: the context lists
availableLocales. - Pro: MLanguageSwitch — a segmented or single-button language toggle with flags that plugs into MI18n or works controlled.
v2.7.1 - Right sidebar on phones, MReveal and fixed elements, timeline labels
Patch release. Nothing to change in your code.
- MSidebar:
side='right'opens its drawer on phones again (broken since 2.6.0). - MReveal: once the animation ends, fixed-position children (drawers, toasts, floating buttons) are placed against the viewport again, not against the revealed section.
- MTimelineBoard:
eventDetailsLabelnow labels the event details popover for screen readers; translatable viamineralui.timelineBoard.eventDetails.
v2.7.0 - Sidebar toggle, responsive simple grid, i18n interpolation, media tiles
Minor release. Nothing to change in your code — every option is new and the defaults look as before.
- MSidebar:
hamburger='none'plus the newMSidebarTogglelets you put the drawer button in your navbar instead of the floating one.side='right'now sits after the content with its border on the inner side. - MAppShell:
sidebar/asideprops dock sidebars that live inside your own wrapper components; a dev warning tells you when a sidebar is not docked. - MTabs: horizontal tabs (pills too) no longer push narrow pages into horizontal scroll.
- MSimpleGrid:
columnstakes a mobile-first object like{ base: 1, md: 2, xl: 4 }. - MI18n:
t('greeting', { name })interpolates{name};t(key, fallback, vars)works too. - MGallery:
ratioandfitfor non-square images. - MCardTile:
variant='media'withratio,badgeandribbonfor product and gallery tiles. - MButton:
iconPosition='top'stacks the icon above the label. - MTag:
variant='dot'. - MDropdownMenu:
triggerClassName/triggerStyle. - Pro: flag icons take
fit='flag'to drop the empty space around the flag.
v2.6.0 - Area selection, chat files, grouped navbar actions
Minor release. Nothing to change in your code. Coming from 2.5.2? Read the 2.5.3 notes first: MStack spacing became the gap between children and the styles moved into a cascade layer.
- MWeekGrid:
selectablelets people drag over the grid (mouse, pen or finger) instead of clicking every hour. Live preview,onSelectRange/onSelectingRange, whole day / hour from the headers, Shift + arrows and Enter from the keyboard. - MChat (Pro): messages take
attachments(download chips). MChatInput takes any file type viaattachAccept, limits withmaxFiles/maxSize, works as a controlled field, inserts text withref.insertText()and shows your ownactions. - MNavbar: with
collapseActionsthe action groups and the burger stay together at the end of the bar on desktop. - Focus outlines on about 30 components use the theme focus colour, visible in both themes.
- MScheduler (Pro): the keyboard move frame shows the time in narrow week columns.