Skip to content

Releases

v2.9.2 - brand tone fixes, MCardHeader action, new component tokens

Choose a tag to compare

@Banzamel Banzamel released this 07 Nov 00:35

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, outlined restores 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-*-bg and --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 action slot at the end of the header, with the MCardHeaderProps type.
  • --mineral-surface-brand-action-bg and --mineral-surface-brand-action-text set the filled buttons in the brand scope.
  • --mineral-table-body-bg on MDataTable, also for tables on brand in the light theme.
  • --mineral-tabs-accent-rgb on MTabs sets the active tab, hover and focus.
  • --mineral-sidebar-item-hover-bg and --mineral-sidebar-item-hover-text on 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 bottomNav slot.
  • MSurface, MCard and MCardFinance: tone="brand", set with --mineral-surface-brand-bg and --mineral-surface-brand-on-rgb.
  • --mineral-card-finance-bg, --mineral-card-widget-bg, --mineral-card-tile-bg and --mineral-stat-value-color.

Full list with defaults: https://mineralui.io/docs/theming

v2.9.1 - MBottomNav, brand tone, card background tokens, MReveal fix

Choose a tag to compare

@Banzamel Banzamel released this 06 Nov 20:24

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-motion and shorter elements behave as before.

Added

  • MBottomNav: new component in Basic and Pro. A fixed app navigation bar for phones, as a nav with aria-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 bottomNav slot renders outside the main column, and .app-main keeps 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

Choose a tag to compare

@Banzamel Banzamel released this 06 Nov 18:10

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). fullWidth and 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-finance and .card-tile.
  • MCardDaySchedule: titleLevel sets the heading level (default 4). timelineMaxHeight scrolls 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-wide sets the width of size="wide".
  • MCardStat: --mineral-stat-value-size, --mineral-stat-icon-bg, --mineral-stat-icon-color.
  • MBadge: --mineral-badge-bg-opacity and one --mineral-badge-text-<colour> token per colour.
  • MButton: --mineral-filled-text for the text of filled buttons.

Full list with defaults: https://mineralui.io/docs/theming

v2.8.3 - Sidebar language switch layout

Choose a tag to compare

@Banzamel Banzamel released this 05 Nov 19:48

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 with showCode={false} to work around it, you can drop that.

v2.8.2 - Translatable timeline event actions

Choose a tag to compare

@Banzamel Banzamel released this 05 Nov 19:18

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"); eventActionsLabel still overrides it.

v2.8.1 - Language switch spacing

Choose a tag to compare

@Banzamel Banzamel released this 05 Nov 18:33

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

Choose a tag to compare

@Banzamel Banzamel released this 05 Nov 18:33

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, minHeight and align.
  • 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 and variant='gradient' (themeable via --mineral-button-gradient and --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

Choose a tag to compare

@Banzamel Banzamel released this 05 Nov 14:21

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: eventDetailsLabel now labels the event details popover for screen readers; translatable via mineralui.timelineBoard.eventDetails.

v2.7.0 - Sidebar toggle, responsive simple grid, i18n interpolation, media tiles

Choose a tag to compare

@Banzamel Banzamel released this 05 Nov 13:49

Minor release. Nothing to change in your code — every option is new and the defaults look as before.

  • MSidebar: hamburger='none' plus the new MSidebarToggle lets 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 / aside props 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: columns takes a mobile-first object like { base: 1, md: 2, xl: 4 }.
  • MI18n: t('greeting', { name }) interpolates {name}; t(key, fallback, vars) works too.
  • MGallery: ratio and fit for non-square images.
  • MCardTile: variant='media' with ratio, badge and ribbon for 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

Choose a tag to compare

@Banzamel Banzamel released this 27 Oct 19:49

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: selectable lets 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 via attachAccept, limits with maxFiles / maxSize, works as a controlled field, inserts text with ref.insertText() and shows your own actions.
  • MNavbar: with collapseActions the 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.