Windmorph
Material 3 Expressive components for React
Accessible, themeable components with M3 Expressive springs and shapes, built on React Aria and Tailwind CSS v4, for Next.js and Vite.
Expressive components
Every component from the M3 Expressive update, with its shapes, springs and new sizes, ready to drop into a React app.
A looping video of M3 Expressive components switching between a resting and an active state as the theme changes: a FAB menu, toolbars, a button group, progress and loading indicators, an icon button and a navigation rail.
New: Toolbars
Keep the actions people use most within reach. A floating toolbar holds icon buttons and can sit next to a FAB.
New: Split button
One main action, with its alternatives one tap away. The menu half morphs its shape as it opens.
Updated: Progress indicators
Show how far along a task is, with a wavy track or the shape-morphing loading indicator.
New: Button groups
Related buttons that react to each other: the pressed one changes shape, and in a standard group it grows while its neighbours make room.
See all expressive components
Browse every component, each with live demos, its API and accessibility notes.
Built right
The details that make the library dependable in production.
Full M3 token system
Every surface draws from semantic colour, shape, type and elevation tokens, and component tokens restyle a component from CSS.
Accessible by default
Built on React Aria: names, roles, focus and keyboard behaviour come included.
RTL ready
Logical properties throughout, so layouts mirror correctly from one direction flag.
Zero-config theming
ThemeProvider sets theme, mode, contrast and motion, and remembers the choice.
M3 Expressive motion
Motion-powered springs with reduced-motion honoured out of the box.
Composable APIs
className slots and composable parts let you extend components without forking.
Quick start
Three steps to your first component. See the full guide for fonts, icons and routing.
- 1
Install
Add the package with motion, its animation peer dependency.
Terminal - 2
Import tokens & styles
In a Tailwind v4 project, import Tailwind and the library tokens, then let Tailwind scan the package.
globals.css@import 'tailwindcss'; @import '@windmorph/react/styles.css'; @source '../node_modules/@windmorph/react'; - 3
Use a component
Wrap the tree in ThemeProvider and drop in any component.
App.tsximport { Button, ThemeProvider } from '@windmorph/react'; export function App() { return ( <ThemeProvider defaultTheme="baseline"> <Button variant="filled">Save</Button> </ThemeProvider> ); }
Browse components
89 components across 7 categories — each with live examples, M3 specs and a full props reference, plus an interactive playground on supported components.
Actions
8- Five variants and five sizes for text actions, with a toggle form and a press morph.ButtonExpressive
- Groups buttons as a unit; the connected variant replaces segmented buttons.Button groupExpressive
- A screen's single most important action, as an icon or an extended label.FABExpressive
- A FAB that opens two to six related actions above it, or a menu on the web.FAB menuExpressive
- A compact icon-only action; requires an accessible name.Icon buttonExpressive
- A reaction button that likes on tap, with a floating row of reactions on long press, hover or the keyboard; slide a finger along it to pick. Not an M3 component (@windmorph/react-pro).Reaction pickerPro
- The reactions so far: the top kinds’ icons and how many, stacked under a post or as a chip in a comment; pressable to see who reacted. Not an M3 component (@windmorph/react-pro).Reaction summaryPro
- A primary action beside a trailing button that opens a menu of related actions.Split buttonExpressive
Inputs & selection
19- A field you type into, with a menu of matching options. Accent-insensitive filtering, input chips for several choices, server results.Autocomplete
- Selects any number of options, with checked, unchecked and indeterminate states.Checkbox
- Assist, suggestion, filter and input chips for compact actions and entries, in a chip set.Chips
- A read-only value with a copy button and its own confirmation. Not an M3 component (@windmorph/react-pro).Copy fieldPro
- A panel for choosing emoji, with search, a tab per category, recently used emoji and a skin tone; plus its trigger, which inserts at the caret of a message field and opens in a popover, a bottom sheet or docked in the keyboard’s place on phones; and createEmojiSuggestions, which suggests emoji after : in a message field. Not an M3 component (@windmorph/react-pro/emoji-picker, with emojibase-data).Emoji pickerPro
- Makes any library button open the file picker, or the camera on phones; useFileTrigger does it from a menu item. Not an M3 component (@windmorph/react-pro).File triggerPro
- Frames a photo before upload: drag, pinch or zoom it behind a fixed frame, and get the crop in the original pixels. Not an M3 component (@windmorph/react-pro).Image cropPro
- A media player's position bar: where playback is, what has loaded, and the time under the pointer, to seek by pointer, touch and keyboard. Not an M3 component (@windmorph/react-pro).Media time sliderPro
- The photos someone is adding: upload progress and errors, remove and retry, drag to reorder (mouse, touch or keyboard), an add tile and file drop. Not an M3 component (@windmorph/react-pro).Media upload gridPro
- A rounded field for writing something to send (a comment, a reply, a chat message) that grows from a pill into a box, with a send button, tools that open into their own row on focus, a reply banner, attachments and suggestions while typing (people after @, tags after #, emoji after :); plus its trigger. Not an M3 component (@windmorph/react-pro).Message fieldPro
- A phone number with a searchable country picker; formats as typed and reports E.164. Not an M3 component (@windmorph/react-pro).Phone fieldPro
- One box per character for verification codes, PINs and vouchers, with paste and one-time-code autofill. Not an M3 component (@windmorph/react-pro).PIN inputPro
- A set of radio buttons for picking exactly one option; a Radio needs a RadioGroup.Radio group
- A message field that formats as you type, with markers in plain text: bold, italic, strike, code, links, lists, quotes and code blocks, with a formatting toolbar, and suggestions while typing (@mentions of people, #tags and emoji after :); plus FormattedText, which shows what it wrote. Not an M3 component (@windmorph/react-pro/rich-text, with Tiptap).Rich message fieldPro
- The search bar's 56px pill as a search box that filters a page, a list or a table in place, with a clear button. It never opens a search view.Search field
- An exposed dropdown menu: a field that opens a menu of options. One or several choices, sections, a search for long lists, a sheet on phones.Select
- Chooses a value or a range on a continuous or stepped scale, in five sizes.SliderExpressive
- Toggles a single setting on or off, with optional icons in the thumb.Switch
- Filled or outlined text input with a floating label, icons, affixes, counter, error icon and a text area.Text field
Containment & overlays
32- A stack of headers that open and fold panels of content, one at a time or several: FAQs, settings groups, product details and filters. Not an M3 component (@windmorph/react-pro).AccordionPro
- A picture with an initials or icon fallback, badges, 35 Expressive shapes and groups. Not an M3 component (@windmorph/react-pro).AvatarPro
- A small dot or a short count or label, placed on an anchor with BadgedBox.Badge
- A container for related content in three forms: static, pressable or a link.Card
- A scrollable row of items that resize along keylines: multi-browse, uncontained, multi-aspect, hero or full-screen.CarouselExpressive
- Source code for documentation, highlighted at build time, with a copy button and optional line numbers. Not an M3 component (@windmorph/react-pro).Code blockPro
- Content that opens and folds on its height, as an accordion when two switch together: reply fields, answers, more filters. Not an M3 component (@windmorph/react-pro).CollapsePro
- One comment or message in a thread: avatar, bubble, what goes under it and a 48dp actions row that spaces the comments. Not an M3 component (@windmorph/react-pro).Comment rowPro
- One dialog for "are you sure?": a question, what will happen, and two actions, locked while the action runs, with a failure kept inside it. Not an M3 component (@windmorph/react-pro).Confirm dialogPro
- Spreadsheet-style editing, virtualized both ways, with typed editors, validation, keyboard ranges, and copy and paste. Not an M3 component (@windmorph/react-pro).Data gridPro
- Browse, sort, filter, select and act on records, from the browser or a server, with saved views and a compact form. Not an M3 component (@windmorph/react-pro).Data tablePro
- A modal surface for a focused task or a decision, with a title, content and actions, or full screen on compact windows.Dialog
- A thin line that separates content, horizontal or vertical, with optional insets or a label.Divider
- A video's length in the corner of its picture, light on a dark see-through ground over any picture, read in words as part of the card's link. Not an M3 component (@windmorph/react-pro).Duration tagPro
- Text cut to a few lines with "See more", shown only when it is cut, that expands it in place: posts, comments, reviews and bios. Not an M3 component (@windmorph/react-pro).Expandable textPro
- The large carousel at the top of a media or store page: one slide in front with whole slides set back beside it, moved by a swipe, side arrows or keys, and by itself only with a Pause control. Not an M3 component (@windmorph/react-pro).Featured carouselPro
- Rows with headline, overline, supporting text and leading or trailing content (icons, avatars, images, video thumbnails); items can be links, switches, checkboxes or radio buttons, and put in order by drag or a menu.List
- M3's list-detail canonical layout, sized by its own width: one pane at a time below 840px, the list beside the open item from 840px. For settings, an inbox or a dashboard. Not an M3 component (@windmorph/react-pro).List-detail layoutPro
- Square photo tiles, a sideways row on compact windows and a grid from medium up; a press on a tile reports it (`onAction`), for the app to open the viewer. Not an M3 component (@windmorph/react-pro).Media gridPro
- A full-screen viewer for a set of photos: swipe between them, zoom, and read each caption and position. Not an M3 component (@windmorph/react-pro).Media viewerPro
- A temporary list of choices anchored to a trigger, with groups, selection, submenus and context menus, or a bottom sheet on phones.Menu
- An anchored panel of any content, with managed focus and light dismiss, that fills the window on a phone. Not an M3 component (@windmorph/react-pro).PopoverPro
- A component's props as a table: name, type, default and description, for documentation. Not an M3 component (@windmorph/react-pro).Props tablePro
- A vertical list whose rows a person puts in order: by dragging a handle, with the arrow keys, or from a move menu with no drag at all, each move said to screen readers. Not an M3 component (@windmorph/react-pro).Reorder listPro
- An icon in a circle or an M3 Expressive shape, in a colour role's container colours: emphasis for steps, features and empty states. Not an M3 component (@windmorph/react-pro).Shaped iconPro
- Bottom and side sheets for supplementary content, modal or standing in the layout.Sheets
- One row of cards that scrolls sideways, with part of the next card showing at its end and Previous and Next at its sides for a mouse. Not an M3 component (@windmorph/react-pro).ShelfPro
- A small, static label for a status or category: Sold, Open now, Featured. Tonal, filled or outlined, in M3, success and warning colours. Not an M3 component (@windmorph/react-pro).TagPro
- A plain label on hover or focus, or a rich tooltip with a subhead and an action.Tooltip
- A hierarchy of rows that open and fold, with selection, their own controls and children that load. Not an M3 component (@windmorph/react-pro).Tree viewPro
- A video player complete with nothing set: its own controls, keys, touch gestures, captions and states over a file or a stream, drawn in the theme over any picture. Not an M3 component (@windmorph/react-pro).Video playerPro
- A video player's settings: a small panel over the picture at the player's corner whose rows open pages in its place (speed, captions, quality), a bottom sheet on phones. Not an M3 component (@windmorph/react-pro).Video player settingsPro
Navigation
10- Navigation written as text: in a sentence, as a name, or on its own line. Underlined in text, routed like every library link, with new-tab handling. Not an M3 component (@windmorph/react-pro).LinkPro
- 3–5 destinations along the bottom of compact and medium windows, stacked or inline.Navigation barExpressive
- Top-level destinations along the start edge, collapsed or expanded, in medium windows.Navigation railExpressive
- A rail destination that opens a secondary column of links on hover or focus, and folds as an accordion in an expanded rail. Not an M3 component (@windmorph/react-pro).Navigation rail groupPro
- A search bar that opens a full-screen view on phones and a docked view on larger windows, and an app bar with search.Search
- A strip of icon links or buttons at the end edge of the window that hides to a small tab. Not an M3 component (@windmorph/react-pro).Side panel railPro
- "Skip to content" for keyboard users: off screen until focused, then it moves focus past the navigation (WCAG 2.4.1). Not an M3 component (@windmorph/react-pro).Skip linkPro
- Primary and secondary tab rows with a sliding indicator, scrollable when they overflow.Tabs
- Docked and floating toolbars of related actions, with an optional FAB, scroll collapse and scroll exit.ToolbarsExpressive
- A header with the screen title and actions, in three sizes, with scroll behaviour.Top app bar
Feedback
8- A message that stays until it's resolved: a form's error, a page's warning, a system notice. Error, info, success, warning and neutral, tonal or outlined. Not an M3 component (@windmorph/react-pro).AlertPro
- Fills a region with nothing to show: no posts yet, no results, coming soon, or couldn't load with a retry. Not an M3 component (@windmorph/react-pro).Empty statePro
- The end of a list loaded a page at a time: loads as the end comes near, with Load more, a loading state and Retry. Not an M3 component (@windmorph/react-pro).Load morePro
- An Expressive shape that morphs while it rotates; replaces the spinning circle.Loading indicatorExpressive
- Linear and circular indicators, determinate or indeterminate, flat or wavy.Progress indicatorsExpressive
- Pull down at the top of a list or page to reload it, with a contained loading indicator that follows the pull.Pull to refreshExpressive
- A placeholder in the shape of loading content, pure CSS with pulse or shimmer. Not an M3 component (@windmorph/react-pro).SkeletonPro
- A brief message with an optional action and dismiss, queued through a host.Snackbar
Pickers
5- An event calendar with month, week, day, agenda, resource schedule and timeline views, in any time zone. Not an M3 component (@windmorph/react-pro).CalendarPro
- Pick a single date or a range on a month grid or by typing, docked below a field or in a dialog.Date picker
- The modal form of a date or time picker, with confirm, dismiss and mode-toggle slots.Picker dialog
- A compact field that takes what people type, with the time picker a press away.Time field
- Pick an hour and minute on a clock dial or by typing, 12- or 24-hour.Time picker
Charts
7- Columns over places: one series, or several stacked into a total, read by pointer, finger and keyboard. Not an M3 component (@windmorph/react-pro).Bar chartPro
- 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. Not an M3 component (@windmorph/react-pro).Chart framePro
- Lines over time: one subject with a wash under it and others to compare with, read by pointer, finger and keyboard. Not an M3 component (@windmorph/react-pro).Line chartPro
- A value on a known scale, such as storage used or a quota, with a warning past a threshold said in words, never by colour alone. Not an M3 component (@windmorph/react-pro).MeterPro
- Parts compared on one scale, largest first, with the rest in one row last; and a funnel's steps with each one's share of the step before. Not an M3 component (@windmorph/react-pro).Ranked barsPro
- One whole in a few parts, as a bar that prints its figures or a thin bar above a list of the parts; parts with an order can take the theme's ramp, lightest to darkest (the reverse in dark mode). Not an M3 component (@windmorph/react-pro).Segmented barPro
- One number and how it moved: what it is, the figure, its change against something, and a small trend under the number. Not an M3 component (@windmorph/react-pro).Stat tilePro