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
ListtakesonReorder: 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, anduseListItemReordergives an item's own menu the same moves.
Windmorph Pro
- The formatting row of
MessageFieldandRichMessageFieldscrolls 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
usePresencekeeps 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
OptionPopovertakes aplacement, so a field near the bottom of the window can open its list above itself, flipping below where there's no room.
Primitives
useKeyboardInsetreads a keyboard laid over the page through the VirtualKeyboard API, counting a floating keyboard from its top edge.
Windmorph Pro
MessageFieldandRichMessageFieldsuggest people after@, tags after#and emoji after:, in a list above the field;createEmojiSuggestionsbuilds 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
Selectnamed 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
TopAppBartitle 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
DataTablelist 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
SelectandAutocompletefolds ø, ł, ß, æ, œ, þ, ð 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
SideSheetno longer makes the page scroll sideways: content it positions inside itself, such as text only screen readers read, is clipped with it.
Primitives
useKeyboardInsettells 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
Dialogpaints--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
VideoPlayertakes the app's speed presets and order of settings rows;ListDetailLayouttakes a page heading for the detail shown alone;StatTiletakesvalueTextand 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
Menucan show its submenus in place (submenuPresentation="replace"), below a back button, its height springing to each page, and open inside an element of yours. AMenuGroupcan be a group of choices beside the menu's actions, with a selection of its own. ListItemVideo'sdurationtakes 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.formatClockandformatDurationWordssay a media's length, andusePageHeightmeasures a page in a surface whose pages replace each other.
Fixes
- A
Dialog,BottomSheetorSideSheetopened by Space on a switch or checkbox, or by a screen reader's click, takes its first focus. dark:follows the nearestThemeScope, so a light scope on a dark page is light.ThemeProviderstores 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
VideoPlayerand its settings,FeaturedCarousel,Shelf,ReorderListandDurationTag, with chapters on the time slider.- Fixes across the charts and
DataTable, and aPinInputwhose 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
useM3SpringValueanduseM3SpringValuesin@windmorph/react/primitivesmove a number, or a list of numbers, on the theme's springs, and keep their speed when a new target arrives mid-way. Matched bykeys, the values a sliding window keeps carry on where they are, andrestsays where a new one starts.AnimatedNumbercounts from one value to the next, in the value's own decimals; screen readers and copying get the value itself, never the figures passing.staggerDelaysanduseEntranceplay an entrance one item after another, once, when it first comes into view. Under reduced motion, values change at once.
Components
useNearestRevealis 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.themeSelectorgives 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
motion14.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:StatTilewith aSparkline,Meter,LineChart,BarChart,SegmentedBarandSegmentedList(plain parts, or ordered from lightest to darkest),RankedBarsandFunnelBars. 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.DataTabletakesmaxHeight: 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, withitemTargetanditemRel), one tab stop each, that a modifier or the context menu opens in a new tab. Each item says its size (data-sizeand how open it is), so words over an item can fade as it shrinks, andonFocalChangenames the item in the large place. controlPlacement="end"onSwitch,Checkbox,RadioandRadioGroup: a settings row with its words at the start and its control at the end, the whole row being the label.valueTextonSliderandRangeSlidersays the value in words for screen readers, such as a time; a screen reader's own change now callsonChangeEnd, as a key does.ThemeScopetakesas="span"for content that takes only phrasing content, andNextRouterProvidertakes the app'sbasePathandtrailingSlash.- For sliders built on React Aria outside the library,
@windmorph/react/primitiveshas 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,verticalAlignanditemAlign;currentandcurrentIconon navigation items, which mark the page the app is on;onCloseonSnackbar; andopenDelayon tooltip and submenu triggers. The old names still work, struck through in editors, and go in a later minor release. - A
SnackbargivenonClosenow shows its close button: the name used to reach the page as an attribute and did nothing.
Fixes
- Links inside a
RouterProviderwith auseHref(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 multipleAutocomplete's chip rows are 48px apart, top to top, and a scrollingChipSetshows a focused end chip's whole ring. - Escape in an
Autocompletelist inside a bottom sheet closes only the list. In aCarousel, 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 aSliderreads 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 bystepseconds, 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.AvatarandAvatarGrouptake any size in px, or--wm-avatar-sizefrom CSS, with a 48px touch target and a group's spacing that follow it; a rectangleSkeletontakes aratio, standing for a picture before it loads.- Pro speaks the same names:
headingLevel,onFileAccept,loadingIndicatorandendMessage,titleonPopover(now its header's text) andNavigationRailGroup, andcurrenton aSidePanelRailItemlink; the old names still work. - A
DataTablerow's link shows the router's address, and a focused link in collapsedExpandableTextkeeps 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
Dialoginside the content of a dialog that aDialogTriggeropened 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 itsopensays so, and closes alone. A modalBottomSheetorSideSheetinside a sheet that aSheetTriggeropened does the same, and so does aMenuorSelectshown as a sheet there. - Escape pressed in a dialog or sheet opened from inside a
BottomSheetno 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
MediaGridloads the smallest file that fills a tile when its photos are stored at several widths (srcSet). The tile's image had nosizes, 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 takessizesfor a grid narrower than the window.- A
MediaGridtile 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'saltand still callsonAction; a failure is noticed in the server's HTML too, and a photo with no address shows the placeholder at once. - A link
Avatartakestarget,relanddownload, as an<a>does. Withtarget="_blank"itsrelalways holdsnoopener noreferrer, and its name says it opens in a new tab. ExpandableTextno longer shows "See more" on text that isn't cut. One line holding a standaloneLinkshowed the button, and pressing it changed nothing: the link's 48px touch target was counted as text. The text itself is now measured.- A
stackedReactionSummaryfollowssizeasReactionPickerdoes: its pressable button is the picker's height and padding (32px and 8px atsm) 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
Popoverinside the content of a popover that aPopoverTriggeropened keeps its own open state, as the core's dialogs and sheets now do. With this core, aRichMessageFieldworks 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
PickerDialogaround aDatePickeror aDateRangePicker, and aDateField's full-screen dialog, closed with the date picked before. - A dialog, menu or sheet opened from a
ButtonGroup, aChipSet, a toolbar, an app bar or a search bar is no longer part of it. Its buttons took the group's size, corners anddisabled, 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; passvariant="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 anoverflow-hiddenclass can't cut it off; and a menu or tooltip trigger around the chip wires up its main button only, never Remove. - A
FilterChipkeeps its selection and keyboard focus whenonRemoveis added or taken away, as an app does to show the remove button only on wider windows. - A
ChipSetwithdisableddisables every chip in it, whatever its kind; before, only the filter chips taking part in a selection were. It callsonSelectionChangeonly when the selection changes, and in a scrolling set the arrow keys bring the whole chip into view. - An
InputChipwith onlyonPressshows 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,DateFieldandTimeField. 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
Avatartakes 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.statusRingLabelsays 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, withstatusRingInactiveSegmentsfor 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'saltin 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
ChipSetputs 16px between its rows instead of 8px (20px and 24px asdensitymakes 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 agap-y-*class brings the rows closer again.
Fixes
useScrollKeysanduseScrollRestorationfollow 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.useScrollKeysleaves 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.useScrollRestorationkeeps 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
ChipSetwith 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
LocaleProvidersets 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.useLocalereturns 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 aDialog: Cancel, then one acting button that can submit and shows that it's working.- Pro's components follow
LocaleProvidertoo.
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'sen-USto the browser's language by itself, and kept03/05/2030, which a day-first browser then read as 3 May instead of 5 March when the field lost focus. Dialogno longer takesisEntering, 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
LabelsProvidersets 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 ownlabelsstill wins, anduseLabelsreads the provider from a component of your own.TimeFieldtakespresentation="docked": on windows 600px wide or more its clock opens a list of times under the field, every half hour or everystepminutes, for forms with many times. Narrower windows keep the dialog, and any time can still be typed.useScrollRestorationanduseScrollKeys, 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
labelsreadsLabelsProvidertoo, so Pro's words are translated in the same place as the core's. ShapedIconandEmptyStatetakecolor="success"andcolor="warning", so an empty state that says "all done" can be green.- A
PhoneFieldcan be named byaria-labelledbyalone, as the core's fields can. - A
ListDetailLayoutinside 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
Menuitem's tick, icons and description follow the selected label's colour token, inSelectandAutocompletelists 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
MenuItemwithhrefis a real link: it opens in a new tab and its address can be copied,downloadsaves the file, and following it closes the menu.
Windmorph Pro
- An
Avatarshowing 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
SliderorRangeSlidernamed witharia-labelledbynames each thumb by that label, not by its value. - A hint or value longer than a
TextField,Autocomplete,SearchFieldorSearchBarends 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
SearchFieldfilters 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 takesdensitylike the other fields.
Windmorph Pro
DataTablecolumns takewidth: '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
DataTableorDataGrid's last row no longer draws a second line against the outline. - A hidden
SidePanelRailon 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
NavigationRailsizes 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
TextFieldfirst rendered out of sight keeps its height once shown, and aDateRangePickeropens on its range's month. - A switch
ListItemthat's on stays plain, as a settings row, with only its switch showing the state; checkbox and radio items keep the fill, andselectedWhenCheckedpicks 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
DialogHeadertakescloseIcon, to replace the full-screen close button's icon, asSideSheetandBottomSheetdo.- A standard
SideSheettakesclassNames.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 standardSideSheetbeside the page.NavigationRailGroupkeeps one panel per rail, replacing its content as the pointer moves between destinations, and folds without a bounce.classNameskeys 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
NavigationRailorNavigationBarlabel keeps its regular weight, as M3 Expressive specifies; only its colour changes. - Changing the theme, mode or contrast through
ThemeProviderupdates every control at once, where buttons and other controls used to fade behind the page. - A disabled
ButtonorIconButtonlink keepsrole="link"once itshrefis 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 ofDateField: it reads forgiving typing and paste and opens theTimePickerin a dialog.TimeandparseTimeare exported, so an app needs no date library for it.NavigationRailtakeshideOnCollapse="compact", so one rail is the rail on larger windows and the drawer on a phone, anduseNavigationRail()serves custom destinations.ButtonGrouptakesfullWidth: a connected group still spans its container by default, andfullWidth={false}sizes it to its buttons.useRevealEntering,toAriaPlacementandclosedByOverlayOptionsin@windmorph/react/primitives, for anchored overlays that behave asMenudoes.
Windmorph Pro
DataTable,DataGrid,Calendar,TreeView,NavigationRailGroup,PopoverandCopyField, each with its own page here.
Fixes
- A
TextFieldwithtypedate,time,datetime-local,monthorweekfloats its label while empty, so it no longer covers the format the browser draws. DialogContentno 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
NavigationRailItemorNavigationBarItemkeeps an explicitaria-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
ThemeProviderno longer makes React discard server HTML streamed behind a Suspense boundary (a Next.jsloading.tsx): withmode="system"on a dark device, the page could show twice for a moment.useTheme()now resolvesresolvedModeitself; the API is unchanged.- In development,
ThemeProviderwarns 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 withgetThemeFromCookiesand pass every value as adefault*prop. The Next.js guide's example now passesdefaultDensitytoo. - 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 releaseThe 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:
SearchBaropens 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,ThemeScopefor a themed subtree,createThemefor a theme of your own and a CLI that writes it to static CSS.- Density, as M3 defines it:
densityfrom 0 to −3 onThemeProvider, aThemeScopeor 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
ThemeScripton 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.shapeslibrary. - 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
classNamestyles a component's outermost element andclassNamesstyles its parts, and your classes always win over the library's. Overlays such as dialogs, menus, sheets and tooltips takeclassNameandstyleon their outermost element; style their surface withclassNames.panel.- Layout safety: layout classes such as
fixed,overflow-hidden,w-fullor 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
labelsprop, 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 andNextRouterProviderfor 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.