Skip to content

What's new

What each version of @windmorph/react brings, newest first.

0.2.18

Lists whose items a person puts in order, by dragging a handle or from its menu. In Windmorph Pro, a message field's formatting row that holds still when pressed.

Components

  • List takes onReorder: each item gets a handle that drags it with a mouse, a finger or a pen (the item follows, the others slide aside) and, pressed, opens Move up, Move down, Move to top and Move to bottom, the way with the keyboard. The dragged item takes M3's dragged look, every move is said, and useListItemReorder gives an item's own menu the same moves.

Windmorph Pro

  • The formatting row of MessageField and RichMessageField scrolls sideways only: pressing one of its buttons sometimes moved every icon up by 4px.

0.2.17

A fix for anything that fades out and is asked back mid-fade. In Windmorph Pro, the emoji panel docked below a field in the keyboard's place, a video bar that folds into Settings when it's narrow, and shelves that page cleanly in Safari.

Fixes

  • usePresence keeps an element that opens again while its exit is still finishing. A media bar's time bubble, hovered again just after it began to fade, never came back.

Windmorph Pro

  • The emoji panel docked below a field takes the keyboard's place: the full width, down to the window's foot, in the field's colours.
  • VideoPlayer's bar folds what doesn't fit into Settings, least important first, so every control stays reachable down to 160px.
  • An emoji query after : takes letters and marks of any script.
  • Shelf's Previous and Next land on a card's start in Safari too, where the row had stopped mid-card.

0.2.16

Option lists that can open above their field, and the on-screen keyboard read where it floats. In Windmorph Pro, people, tags and emoji suggested as you type.

Components

  • OptionPopover takes a placement, so a field near the bottom of the window can open its list above itself, flipping below where there's no room.

Primitives

  • useKeyboardInset reads a keyboard laid over the page through the VirtualKeyboard API, counting a floating keyboard from its top edge.

Windmorph Pro

  • MessageField and RichMessageField suggest people after @, tags after # and emoji after :, in a list above the field; createEmojiSuggestions builds the emoji source.
  • The docked emoji panel never moves the field: it takes the keyboard's place at its height, rises without a bounce, waits for the keyboard coming back and turns back smoothly when interrupted. Docked above a field on a computer, it takes the field's colour and corner.

0.2.15

A select that reads one name everywhere, and app bar titles that stay in their column. In Windmorph Pro, a popover beside a field that the keyboard moves through in order.

Fixes

  • A Select named by a heading above it (aria-labelledby) gives that name to its bottom sheet and its searchable list too, and a select with more than one name reads the same one on every part.
  • A long TopAppBar title or subtitle ends in an ellipsis within its column instead of running over the icons.

Windmorph Pro

  • Beside a message field, Tab and Shift + Tab move through the EmojiPicker's popover once, in the same order both ways, and on out of the page. Docked below the field with a mouse, the search box takes focus, so typing searches at once.
  • A custom emoji whose image fails shows its name's first letter, a compact DataTable list held to a height no longer adds scroll room around it, a video's first and last chapters grow to their ends under the pointer, and video settings rows read the words they show.

0.2.14

Overlays that leave cleanly and search that folds more letters. In Windmorph Pro, an emoji picker that keeps out of the way of the text you're writing.

Fixes

  • A closing menu, dialog, sheet or tooltip waits for the transitions still running inside it before it leaves, instead of staying in memory, and an open one no longer restyles its content on every render.
  • Search in Select and Autocomplete folds ø, ł, ß, æ, œ, þ, ð and the dotless ı, so "strasse" finds "Straße".

Windmorph Pro

  • In a message field, EmojiPicker's popover opens against the field instead of over its text, and a pick with the mouse puts you back in the text (focusOnSelect). Docked on a computer, it opens above the field and leaves it in place (dockedPlacement).
  • The picker takes primary or secondary tabs (tabsVariant), its skin tone menu stays over the picker, a custom emoji that fails to load shows a fallback, and a message field's counter counts characters as people see them.

0.2.13

A standard side sheet that stays inside the page when it shuts, and the on-screen keyboard's height for panels of your own.

Fixes

  • A shut standard SideSheet no longer makes the page scroll sideways: content it positions inside itself, such as text only screen readers read, is clipped with it.

Primitives

  • useKeyboardInset tells how far the on-screen keyboard covers the bottom of the window, for a panel that sits above the keyboard or takes its place.

0.2.12

A full-screen dialog in your dialog colour. In Windmorph Pro, video settings that stay open while you use them, and rounded video players with clean corners.

Fixes

  • A full-screen Dialog paints --md-comp-dialog-container-color, as the basic dialog does, so the same dialog keeps its colour on a phone and on a computer, while it opens too.

Windmorph Pro

  • VideoPlayer takes the app's speed presets and order of settings rows; ListDetailLayout takes a page heading for the detail shown alone; StatTile takes valueText and a chart series can be quiet.
  • A press anywhere inside the video settings keeps them open, the speed presets show the pointer, and a rounded player shows no dark rim at its corners over a bright picture. A rail group's divider runs its full height while the column scrolls.

0.2.11

Menus that show their submenus in place, a list a person can put in order, and a media's length said the same way everywhere. In Windmorph Pro, a video player with its settings, a featured carousel, a shelf, a reorder list and a duration tag.

Components

  • A Menu can show its submenus in place (submenuPresentation="replace"), below a back button, its height springing to each page, and open inside an element of yours. A MenuGroup can be a group of choices beside the menu's actions, with a selection of its own.
  • ListItemVideo's duration takes seconds: a clock in the page's digits, read in words.

Primitives

  • useReorder, the engine of a list a person puts in order: a drag from a row's handle, moves by action, a cancel, and scrolling near an edge.
  • formatClock and formatDurationWords say a media's length, and usePageHeight measures a page in a surface whose pages replace each other.

Fixes

  • A Dialog, BottomSheet or SideSheet opened by Space on a switch or checkbox, or by a screen reader's click, takes its first focus.
  • dark: follows the nearest ThemeScope, so a light scope on a dark page is light.
  • ThemeProvider stores only the person's own choices: a mode the app sets for a while no longer replaces theirs.
  • Dates, times and numbers keep the page's locale and hour cycle inside a region laid out in the other direction; icon slots size an icon in a wrapper of its own; entrances print their final picture and show it at once under reduced motion.

Windmorph Pro

  • VideoPlayer and its settings, FeaturedCarousel, Shelf, ReorderList and DurationTag, with chapters on the time slider.
  • Fixes across the charts and DataTable, and a PinInput whose six boxes fit the narrowest dialog.

0.2.10

Motion on numbers: a value or a list of values that springs on the theme's springs, a figure that counts to its new value, and entrances that play once, one item after another. In Windmorph Pro, a family of charts and a DataTable that scrolls under its header.

Motion on values

  • useM3SpringValue and useM3SpringValues in @windmorph/react/primitives move a number, or a list of numbers, on the theme's springs, and keep their speed when a new target arrives mid-way. Matched by keys, the values a sliding window keeps carry on where they are, and rest says where a new one starts.
  • AnimatedNumber counts from one value to the next, in the value's own decimals; screen readers and copying get the value itself, never the figures passing.
  • staggerDelays and useEntrance play an entrance one item after another, once, when it first comes into view. Under reduced motion, values change at once.

Components

  • useNearestReveal is public, for collections built on React Aria's hooks outside the core: arrow keys bring an item into view without first centring the whole collection, so the page moves only as far as the item needs.
  • themeSelector gives the selector of one theme, contrast level and mode in the theme CSS, for values of your own that follow the themes as the colour roles do.
  • Windmorph now needs motion 14.12 or later.

Fixes

  • A polite announcement waiting for its live region (a focused button turning pending) no longer throws when its page goes away first.

Windmorph Pro

  • Charts, in @windmorph/react-pro/charts, on the theme's colours and springs in every theme, mode and contrast level: StatTile with a Sparkline, Meter, LineChart, BarChart, SegmentedBar and SegmentedList (plain parts, or ordered from lightest to darkest), RankedBars and FunnelBars. They are drawn in the server's HTML, read by pointer, finger and keyboard, and move from where they are when the numbers change.
  • ChartFrame, the card a chart sits in: its title names the chart, a switch shows the same numbers as a table, and it has empty, loading, pending and error states.
  • DataTable takes maxHeight: the rows scroll under the header. Columns cut off by a narrow window stay within the keyboard's reach, arrow keys no longer scroll the page to centre the table, and the compact list shows every figure with its column's name.
  • RichMessageField's mention list keeps its first suggestion when it opens under a pointer at rest, so Enter mentions the best match.

0.2.9

One name for each idea across the library (the old names still work), links that show the router's address, overlays that show in full screen, and a modifier key pressed alone that no longer brings back a focus ring. In Windmorph Pro, MediaTimeSlider, a media player's position bar, and an Avatar of any size.

Components

  • A Carousel's items can be links (itemHref, with itemTarget and itemRel), one tab stop each, that a modifier or the context menu opens in a new tab. Each item says its size (data-size and how open it is), so words over an item can fade as it shrinks, and onFocalChange names the item in the large place.
  • controlPlacement="end" on Switch, Checkbox, Radio and RadioGroup: a settings row with its words at the start and its control at the end, the whole row being the label.
  • valueText on Slider and RangeSlider says the value in words for screen readers, such as a time; a screen reader's own change now calls onChangeEnd, as a key does.
  • ThemeScope takes as="span" for content that takes only phrasing content, and NextRouterProvider takes the app's basePath and trailingSlash.
  • For sliders built on React Aria outside the library, @windmorph/react/primitives has the Slider's touch handling (useSliderTouchTrack) and its thumb helpers (sliderThumbInputProps, sliderArrowRaises).

One name for each idea

  • Props that had two names now have the library's one: heroAlign, verticalAlign and itemAlign; current and currentIcon on navigation items, which mark the page the app is on; onClose on Snackbar; and openDelay on tooltip and submenu triggers. The old names still work, struck through in editors, and go in a later minor release.
  • A Snackbar given onClose now shows its close button: the name used to reach the page as an attribute and did nothing.

Fixes

  • Links inside a RouterProvider with a useHref (an app's base path) show the router's address, so a new tab, a copied link or a crawler reaches the right page.
  • Tooltips, menus, sheets and dialogs show while an element is in full screen, and stay put as full screen starts or ends. Closing an overlay gives focus back without passing through the page, and icon buttons in an overlay show their own tooltips again.
  • A modifier key pressed alone (Option on a Mac, Caps Lock anywhere) no longer shows the focus ring of a control a pointer focused; a screen reader's rings, and an invalid field's after a form check, stay.
  • Touch targets that overlapped are apart: a RadioGroup's options and a multiple Autocomplete's chip rows are 48px apart, top to top, and a scrolling ChipSet shows a focused end chip's whole ring.
  • Escape in an Autocomplete list inside a bottom sheet closes only the list. In a Carousel, Enter after a mouse drag activates the item, a drag that starts on a picture scrolls, and focus that comes back after a press leaves the carousel where it was. A touch on a Slider reads the slider as it is now.
  • The recipes run on tailwind-variants 4 with the same classes as before, and the library needs React Aria 3.53.1 and React Stately 3.51.0 or later.

Windmorph Pro

  • MediaTimeSlider, a media player's position bar: a thin bar that grows under the pointer, the loaded ranges, a time bubble, the position in words, keys and a screen reader's step by step seconds, and a handle that holds where it was put until the seek lands. While it has focus, the time screen readers read stays still during playback.
  • Avatar and AvatarGroup take any size in px, or --wm-avatar-size from CSS, with a 48px touch target and a group's spacing that follow it; a rectangle Skeleton takes a ratio, standing for a picture before it loads.
  • Pro speaks the same names: headingLevel, onFileAccept, loadingIndicator and endMessage, title on Popover (now its header's text) and NavigationRailGroup, and current on a SidePanelRailItem link; the old names still work.
  • A DataTable row's link shows the router's address, and a focused link in collapsed ExpandableText keeps its whole ring.

0.2.8

Two fixes to overlays inside overlays: a dialog or sheet placed inside one that a trigger opened keeps its own open state, and Escape in a dialog opened from a bottom sheet no longer closes the sheet behind it. In Windmorph Pro, MediaGrid picks the right file for its tiles and keeps the tile of a photo that can't be loaded.

Fixes

  • A Dialog inside the content of a dialog that a DialogTrigger opened keeps its own open state. It took the trigger's, so it opened together with the outer dialog, each made the other inert, and nothing in either could take focus or be pressed. A form's own dialog (an "Add a link", a "Discard changes?") now stays closed until its open says so, and closes alone. A modal BottomSheet or SideSheet inside a sheet that a SheetTrigger opened does the same, and so does a Menu or Select shown as a sheet there.
  • Escape pressed in a dialog or sheet opened from inside a BottomSheet no longer closes the bottom sheet behind it. The sheet took the key from an overlay inside it that doesn't close on Escape (closedBy="none", a dialog while it saves). Escape that cancels a text being composed is left to the input method too.

Windmorph Pro

  • MediaGrid loads the smallest file that fills a tile when its photos are stored at several widths (srcSet). The tile's image had no sizes, so a browser took each tile to be as wide as the window and loaded the largest file. The grid now says how wide a tile shows from its own layout, and takes sizes for a grid narrower than the window.
  • A MediaGrid tile whose photo can't be loaded keeps its square, in a container colour with an icon (fallbackIcon), where the browser drew its broken-picture icon and the alt text. It is still a button named by the photo's alt and still calls onAction; a failure is noticed in the server's HTML too, and a photo with no address shows the placeholder at once.
  • A link Avatar takes target, rel and download, as an <a> does. With target="_blank" its rel always holds noopener noreferrer, and its name says it opens in a new tab.
  • ExpandableText no longer shows "See more" on text that isn't cut. One line holding a standalone Link showed the button, and pressing it changed nothing: the link's 48px touch target was counted as text. The text itself is now measured.
  • A stacked ReactionSummary follows size as ReactionPicker does: its pressable button is the picker's height and padding (32px and 8px at sm) and its count takes the picker's label type, so a summary beside a picker neither stands taller nor moves the row as it appears.
  • A Popover inside the content of a popover that a PopoverTrigger opened keeps its own open state, as the core's dialogs and sheets now do. With this core, a RichMessageField works inside a dialog its trigger opened: its own link dialog used to open with it.

0.2.7

Fixes from an audit of the chips, the overlays and the pickers: a date picker dialog saves the day Enter is pressed on, a dialog opened from a group or a bar is no longer part of it, and a chip with a remove button behaves as one chip. In Windmorph Pro, Avatar takes a status ring.

Fixes

  • Enter on a day in a date picker dialog saves that day. The day was picked only when the key was let go, after the dialog had saved, so a PickerDialog around a DatePicker or a DateRangePicker, and a DateField's full-screen dialog, closed with the date picked before.
  • A dialog, menu or sheet opened from a ButtonGroup, a ChipSet, a toolbar, an app bar or a search bar is no longer part of it. Its buttons took the group's size, corners and disabled, its chips were selected and disabled with the set, its tooltips opened below as in the bar, and Tab inside it was pulled back to the group's selected button. One thing to check: an icon button in an overlay opened from a toolbar, an app bar or a search bar is filled again, as anywhere else on the page; pass variant="standard" to keep it plain.
  • A chip with a remove button behaves as one chip. A press on the end of its label no longer removes it: the remove target stops where the label ends. What is about the whole chip (data-*, hidden, inert, dragging) goes on the chip, not on the button inside it; the focus indicator is drawn round the chip, so an overflow-hidden class can't cut it off; and a menu or tooltip trigger around the chip wires up its main button only, never Remove.
  • A FilterChip keeps its selection and keyboard focus when onRemove is added or taken away, as an app does to show the remove button only on wider windows.
  • A ChipSet with disabled disables every chip in it, whatever its kind; before, only the filter chips taking part in a selection were. It calls onSelectionChange only when the selection changes, and in a scrolling set the arrow keys bring the whole chip into view.
  • An InputChip with only onPress shows its hover, focus and pressed states; it showed none.
  • An outlined field's floated label sits in the middle of its notch, with 4px on each side, at both of the outline's widths. It applies to TextField, Select, Autocomplete, DateField and TimeField. Under reduced motion the outline changes width at once.
  • Enter or Space held long enough to repeat acts once: on a time picker's dial the repeat picked a minute after the hour, in a search bar it submitted the query as the view opened, and on a bottom sheet's drag handle it went on to the next size.

Windmorph Pro

  • Avatar takes a status ring: statusRing="active" for something to see about the account (something new from it, a broadcast under way, the person speaking) and "inactive", thinner and quieter, for nothing new. statusRingLabel says what it means in the avatar's accessible name. The ring is drawn outside the avatar, which keeps its size, follows its shape, and takes a colour or a gradient from its tokens.
  • The ring can be cut into segments, one for each thing there is to see: statusRingSegments, with statusRingInactiveSegments for the ones already seen.
  • badgePlacement="bottom" puts the badge on the avatar's bottom edge as a pill, for a short word such as "LIVE".
  • In an AvatarGroup, the avatar that holds keyboard focus is drawn above the rest, so nothing covers its focus indicator; an avatar in a hover card opened from the group is no longer part of it; and your own link around an avatar is named by the avatar's alt in the server's HTML too.

0.2.6

Touch targets, and a page that is a pane scrolling by itself: every chip in a wrapping set keeps its 48px target, and the two scroll hooks hold up beside a side panel, on pages laid out without the pane and on pages that arrive slowly.

Components

  • A wrapping ChipSet puts 16px between its rows instead of 8px (20px and 24px as density makes the chips smaller), so every chip takes presses over its full 48px touch target. At 8px the targets of two rows overlapped, and a chip with another under it was left with 40px. Chips in a row stay 8px apart, and a gap-y-* class brings the rows closer again.

Fixes

  • useScrollKeys and useScrollRestoration follow the element behind their ref, so a frame can leave its pane out on some pages, or put another in its place. Before, the scroll keys kept going to the pane that had left, and going back from a page without the pane left it at its top.
  • useScrollKeys leaves the scroll keys with another scrolling element the person last pressed in, such as a side sheet's content, which is where the browser sends them. The pane is a Tab stop by what Tab can really reach: a hidden input, or a control in an inert part, no longer takes the stop from a page of text.
  • useScrollRestoration keeps a page's position through a slow return to it: going back again, or pressing a link, before the page was tall enough to reach its position no longer replaces what was kept. A reload restores only the page that was reloaded.
  • Leaving a scrolling ChipSet with Tab no longer scrolls its row to the far end.
  • A TimePicker's dial numbers are named as they are shown ("05 minutes of 60"), so someone who speaks to the page can ask for the number as it is written.

0.2.5

LocaleProvider, one place to set the language dates, times and numbers are written in; in Windmorph Pro, ConfirmDialog, one dialog for "are you sure?".

Components

  • LocaleProvider sets the locale of every component below it: the order of a date, the 12- or 24-hour clock, digits and the first day of the week. Without it the components still follow the browser's language, which may not be the page's: an English page in a British browser got 24-hour time fields. Pass the page's language, the same on the server and in the browser.
  • useLocale returns the locale and its direction, for your own formatting, so your dates match the fields beside them.

Windmorph Pro

  • ConfirmDialog, one dialog for "are you sure?": a question, what will happen, and two actions. Focus starts on Cancel, nothing closes it while the action runs, and a failure stays inside it with focus on the action, so Enter tries again. The action can return a promise, which sets the pending state by itself.
  • ConfirmDialogActions, the same row of actions as a part, for a form in a Dialog: Cancel, then one acting button that can submit and shows that it's working.
  • Pro's components follow LocaleProvider too.

Fixes

  • A DateField, and the date pickers' text input, write their text again when the locale changes. A server-rendered field moves from the server's en-US to the browser's language by itself, and kept 03/05/2030, which a day-first browser then read as 3 May instead of 5 March when the field lost focus.
  • Dialog no longer takes isEntering, an option React Aria 3.53 added to the type its props extend; it did nothing.

0.2.4

LabelsProvider, one place to translate the words components show or announce by themselves, and a TimeField that can open a list of times under the field; in Windmorph Pro, every component reads the same provider.

Components

  • LabelsProvider sets the built-in words ("Close", "Error", the character count) for every component below it, keyed by component, so an app in another language writes them once. A component's own labels still wins, and useLabels reads the provider from a component of your own.
  • TimeField takes presentation="docked": on windows 600px wide or more its clock opens a list of times under the field, every half hour or every step minutes, for forms with many times. Narrower windows keep the dialog, and any time can still be typed.
  • useScrollRestoration and useScrollKeys, for a page that is a pane scrolling by itself, as in the app frame block: the pane's position comes back on back, forward and reload, and the scroll keys reach it while nothing has focus.

Windmorph Pro

  • Every component with labels reads LabelsProvider too, so Pro's words are translated in the same place as the core's.
  • ShapedIcon and EmptyState take color="success" and color="warning", so an empty state that says "all done" can be green.
  • A PhoneField can be named by aria-labelledby alone, as the core's fields can.
  • A ListDetailLayout inside a pane that scrolls by itself can be told the height it has, so its list stays in view as the detail scrolls.

Fixes

  • A selected Menu item's tick, icons and description follow the selected label's colour token, in Select and Autocomplete lists too, so an app that sets the selected colours no longer gets a tick in the old one.

0.2.3

MenuItem links, and fixes for sliders named by a visible label, long text in fields, pressed buttons with an app's own animation and images in a rail's header; in Windmorph Pro, avatars that keep their size.

Components

  • A MenuItem with href is a real link: it opens in a new tab and its address can be copied, download saves the file, and following it closes the menu.

Windmorph Pro

  • An Avatar showing a photo keeps its size wherever it's placed, so a large logo in a rail's header no longer covers the rail.
  • In an expanded or modal rail, a NavigationRailGroup's label matches the rail's other labels instead of reading as a heading.
  • A DataTable's compact rows break a long word, such as an email address, before the row's actions.

Fixes

  • A Slider or RangeSlider named with aria-labelledby names each thumb by that label, not by its value.
  • A hint or value longer than a TextField, Autocomplete, SearchField or SearchBar ends in an ellipsis instead of being cut off mid-letter.
  • Pressing a button no longer changes the timing of a transition an app adds through className, or cuts it short.
  • Content in a NavigationRail's header keeps its own size: an image no longer grows to its natural width, and text stays on one line.

0.2.2

SearchField, a search box that filters what's on the screen, and fixes for components first shown out of sight or set against the window's edge; in Windmorph Pro, DataTable columns that fit their content.

Components

  • SearchField filters a page, a list or a table in place, drawn as the search bar's pill and filling its container. It never opens a search view: Escape clears it, Enter submits, and a clear button shows while there's text. It takes density like the other fields.

Windmorph Pro

  • DataTable columns take width: 'fit', sizing to the widest of their header and values, so translated text isn't cut short. A person's resize still wins, and a double-click on a resize handle (or R, then Enter) fits any column.
  • A DataTable or DataGrid's last row no longer draws a second line against the outline.
  • A hidden SidePanelRail on the window's edge no longer scrolls the page sideways, and the message fields' tool rows no longer cut their buttons' focus rings.

Fixes

  • An expanded NavigationRail sizes itself to its labels exactly, measures again once fonts load or a hidden rail shows, and no longer springs open as the page loads.
  • A growing TextField first rendered out of sight keeps its height once shown, and a DateRangePicker opens on its range's month.
  • A switch ListItem that's on stays plain, as a settings row, with only its switch showing the state; checkbox and radio items keep the fill, and selectedWhenChecked picks either look.
  • A carousel item's focus ring is drawn inside it, so the first and last items' rings are whole, and a collapsed toolbar by the window's edge no longer scrolls the page sideways.

0.2.1

Navigation labels and theme changes as M3 Expressive draws them, a close icon an app can replace, and Windmorph Pro's SidePanelRail, with the Blocks section's app frame to build from.

Components

  • DialogHeader takes closeIcon, to replace the full-screen close button's icon, as SideSheet and BottomSheet do.
  • A standard SideSheet takes classNames.frame, the box holding a detached sheet's margins, so an app can change the gap on one side.

Windmorph Pro

  • SidePanelRail, a strip of icon links or buttons at the window's end edge that hides to a small tab and can open a standard SideSheet beside the page.
  • NavigationRailGroup keeps one panel per rail, replacing its content as the pointer moves between destinations, and folds without a bounce.
  • classNames keys for every inner part of the data and navigation components, replaceable close and expand icons, and tokens for their remaining fixed widths and opacities.

Fixes

  • A current NavigationRail or NavigationBar label keeps its regular weight, as M3 Expressive specifies; only its colour changes.
  • Changing the theme, mode or contrast through ThemeProvider updates every control at once, where buttons and other controls used to fade behind the page.
  • A disabled Button or IconButton link keeps role="link" once its href is gone, so assistive technology still reads its name.

0.2.0

TimeField, one navigation rail for every window size, and pieces for building anchored overlays, beside Windmorph Pro's data, calendar and navigation components.

Components

  • TimeField, the time sibling of DateField: it reads forgiving typing and paste and opens the TimePicker in a dialog. Time and parseTime are exported, so an app needs no date library for it.
  • NavigationRail takes hideOnCollapse="compact", so one rail is the rail on larger windows and the drawer on a phone, and useNavigationRail() serves custom destinations.
  • ButtonGroup takes fullWidth: a connected group still spans its container by default, and fullWidth={false} sizes it to its buttons.
  • useRevealEntering, toAriaPlacement and closedByOverlayOptions in @windmorph/react/primitives, for anchored overlays that behave as Menu does.

Windmorph Pro

  • DataTable, DataGrid, Calendar, TreeView, NavigationRailGroup, Popover and CopyField, each with its own page here.

Fixes

  • A TextField with type date, time, datetime-local, month or week floats its label while empty, so it no longer covers the format the browser draws.
  • DialogContent no longer clips the floated label of an outlined field placed first in a dialog.
  • A searchable Select's sheet keeps its search at the top while the options scroll under it.
  • A selected NavigationRailItem or NavigationBarItem keeps an explicit aria-current, for a destination that shows as current without being the page.

0.1.2

Fixes from the first weeks in apps: server-rendered pages that stream keep their HTML on a dark device, date pickers read a selected today, and bottom sheets stay above the phone keyboard.

Fixes

  • ThemeProvider no longer makes React discard server HTML streamed behind a Suspense boundary (a Next.js loading.tsx): with mode="system" on a dark device, the page could show twice for a moment. useTheme() now resolves resolvedMode itself; the API is unchanged.
  • In development, ThemeProvider warns when a saved theme the server didn't render changes the theme while streamed content is still arriving, and names the fix: read the cookie with getThemeFromCookies and pass every value as a default* prop. The Next.js guide's example now passes defaultDensity too.
  • Date pickers: a selected day that is also today shows the selected day's on-primary text instead of today's primary text, which couldn't be read on the primary fill (modal and docked); the same for the current year and the ends of a range.
  • Bottom sheets stay above an on-screen keyboard and keep within what it leaves showing, and a searchable Select's sheet keeps its full height as the search filters, so its results are never hidden behind the keyboard.

0.1.1

Published from GitHub Actions with npm provenance, so the package on npm links to the commit and build it came from. No code changes from 0.1.0.

0.1.0

First release

The first release: Material Design 3 Expressive for React, with 38 documented component families, six themes, component tokens, the Expressive motion system and shapes, and Next.js support.

Components

  • The M3 Expressive set: buttons in five sizes with round and square shapes, toggles and a press morph; icon buttons, button groups (with an overflow menu), split buttons, FABs and the FAB menu.
  • Inputs and selection: text fields, select and autocomplete, checkboxes, radios, switches, sliders (including range, vertical and centred), chips, and date and time pickers, docked or in a dialog.
  • Containment, navigation and feedback: cards, dialogs, menus (with submenus and context menus), sheets, lists (with sections), the carousel, dividers (with an optional label), the navigation rail, the flexible navigation bar, tabs, top app bars, search, docked and floating toolbars, snackbars, tooltips, badges, progress indicators (including wavy), the loading indicator and PullToRefresh.
  • Components adapt to the window: SearchBar opens a full-screen view on phones and a docked one on larger windows (view="auto", the default), and a menu or select can open as a bottom sheet on phones, where a submenu replaces the menu, with a back button.

Checked against the spec

  • Design intent comes from m3.material.io; sizes, colours, shapes and springs come from the Jetpack Compose Material 3 token files. Where the library differs from Compose, the component's API page says how and why, and the Spec status page lists it.
  • Deprecated components are left out on purpose: the navigation drawer, the original navigation bar, the small FAB, the segmented button and the bottom app bar each have an Expressive replacement.

Themes and tokens

  • Six built-in themes generated with the 2025 colour spec, each in light and dark and at standard, medium and high contrast, plus success and warning colours.
  • ThemeProvider, ThemeScope for a themed subtree, createTheme for a theme of your own and a CLI that writes it to static CSS.
  • Density, as M3 defines it: density from 0 to −3 on ThemeProvider, a ThemeScope or a single component makes fields, menus, controls, lists and tabs more compact, 4px a step, while touch targets stay 48px.
  • No theme flash: the theme is read from a cookie on the server, or applied before first paint by ThemeScript on static sites.
  • Component tokens: M3's component tokens as CSS variables, such as --md-comp-dialog-container-color. They restyle every instance of a component from CSS, for the whole app, per theme or inside any element, without a class on each one.
  • Text follows the reader's browser font size: the type scale is in rem, while sizes, padding and corners stay in px. Containers with text grow to fit it, up to 200% text.

Motion and shape

  • The expressive and standard motion schemes, with spatial and effects springs at three speeds, as CSS linear() easings and as Motion springs.
  • The 35 Expressive shapes and shape morphing, from a port of Android's graphics.shapes library.
  • Reduced motion is respected everywhere: slides, size and shape changes, morphs and rotations happen at once, while fades, colours and essential motion (progress, drags, a pull) stay.

Customisation

  • className styles a component's outermost element and classNames styles its parts, and your classes always win over the library's. Overlays such as dialogs, menus, sheets and tooltips take className and style on their outermost element; style their surface with classNames.panel.
  • Layout safety: layout classes such as fixed, overflow-hidden, w-full or a transform move or size a component without hiding, clipping or breaking its parts.
  • Every built-in word a component shows or announces comes from its labels prop, in English by default, so it can be translated.
  • Components expose their states as data-* attributes, and those with state work controlled or uncontrolled.

Accessibility

  • Built on React Aria: WCAG 2.2 AA, full keyboard support, visible focus rings, 48px touch targets and right-to-left layouts.
  • Components that need an accessible name require one in their types.

Frameworks, styling and size

  • React 19 with Tailwind CSS v4, or a precompiled stylesheet for projects without Tailwind.
  • Next.js App Router and Pages Router: "use client" kept per file, every export importable from a Server Component, cookie theming and NextRouterProvider for client routing.
  • Parts that are not always needed load on demand: built-in tooltips, a menu's bottom sheet, a button group's overflow menu and the loading indicators inside fields and PullToRefresh. They also preload when the browser is first idle, so the first hover or open is usually instant.
  • Tested on Chrome and Edge. Safari 17.5+ and Firefox 129+ are supported targets, with full testing coming next.