material is an independent Material Design 3 component library for the web, with Expressive
components, plain JavaScript factories, web components, and framework bindings. This guide
sets out what it ships, what a page downloads, and the limits to check before choosing it.
See Installation for installation.
- Material 3 Expressive, today. Google's latest Material Design, built for the web: the new shapes, motion and components, in 36 components.
- One library, every stack. Plain JavaScript factories, web components, and React, Vue, Svelte and Solid components, with server rendering. In TypeScript.
- Small by design. Tree-shakable, with zero runtime dependencies: a 3.7 KB core, then each component adds from 0.7 KB gzip. See every size
Material 3 and Expressive coverage
Google describes M3 Expressive as an evolution of Material 3,
with new and updated components, spring motion, and changes to shape, colour and typography.
It does not replace every baseline component. material combines baseline components with
Expressive controls and styling, without claiming every option of the design guidelines: the
component catalogue has all 36 components, and each page its options,
limits and known issues.
The colour roles, shape tokens and motion are shared across these components. See Theming for customisation and Architecture for how the same implementation serves the different bindings.
Measured bundle sizes
The following is the published material 3.17.0-next.8 size table, taken from its README's CI-measured rows. These are minified, gzipped outputs measured from the packed package, not estimates or the size of an entire app. Here, kB means 1,000 bytes. The table comes from the installed package when this site is built, so it follows each release.
| Import | gzip |
|---|---|
createButton from material, with code splitting: the initial chunks (the progress indicator loads on demand) |
8.5 kB |
createButton, without code splitting (the progress indicator included) |
15.1 kB |
createButton, createTextField and createCheckbox, without code splitting |
21.7 kB |
Everything the root exports (export * from 'material'), without code splitting |
144.2 kB |
material/styles/base |
3.1 kB |
material/styles/base-lite |
1.7 kB |
material/styles/base and material/styles/button |
5.5 kB |
material/styles, the full stylesheet |
64.2 kB |
The full stylesheet is about 64 kB gzip. The release changelog records the underlying package measurements.
A page pays only for what it imports when its bundler tree-shakes the JavaScript and it uses
selective style entries. Importing material/styles deliberately brings the whole stylesheet;
importing material/styles/base and the needed component styles keeps that cost selective.
Web components and framework bindings carry their shadow-root styles. The
component catalogue shows per-component sizes; shared code means adding
individual figures is not a reliable way to predict a combined bundle. Measure your own
production build too.
Browser support
The supported target is current Chrome, Edge, Firefox and Safari. The library's browser support statement also names the ES2022 JavaScript floor and the platform features used by its elements.
| Browser | Components, forms and overlays | CSS linear() spring motion |
|---|---|---|
| Chrome, current | Supported | Supported |
| Edge, current | Supported | Supported |
| Firefox, current | Supported | Supported |
| Safari, current | Supported | Safari 17.2 and later |
In older browsers without CSS linear(), every component renders correctly without the spring
transitions, provided the browser meets the JavaScript and other platform requirements. This
motion fallback is not a promise of support for every old browser.
The elements use form-associated custom elements for form values and validation, and the
top layer through popover and <dialog> for overlays. All current browsers in the table
provide those features. Check your actual browser or embedded webview target when it is older
than the current releases.
Frameworks and server rendering
There are zero runtime dependencies. React, Vue, Svelte and Solid are optional peer dependencies: the library uses the framework your app already has. The published README describes the shared implementation and binding contracts.
| Way to use it | Entry | Guide |
|---|---|---|
| Vanilla JavaScript factories | material |
Vanilla |
| Web Components | material/elements |
Web Components |
| React 18 and 19 | material/react |
React |
| Vue 3 | material/vue |
Vue |
| Svelte 5 | material/svelte |
Svelte |
| Solid | material/solid |
Solid |
For SSR, renderElement from material/ssr emits Declarative Shadow DOM, and the
framework bridges are material/ssr/react, material/ssr/vue, material/ssr/svelte and
material/ssr/solid. They render the same element roots on the server and hydrate in the
browser. SSR supports Node and Bun. Workers can use the renderer and all four bridges through the
workerd and worker export conditions. See the server rendering guide
for runtime setup. Plain factories need a browser DOM. Use the server entry for server output.
The SSR contract
describes inline styles for a styled first paint and link mode for smaller HTML. Link mode can
paint unstyled roots in WebKit until its stylesheets arrive. The FAB menu opts out of server
rendering, and the React and Svelte bridges have limits around context and Suspense; check
the server-rendering guide before designing around those features.
Release history and reporting issues
Releases are frequent; that is what has been seen, not a promised schedule or support response time.
Read the changelog for changes and migration notes, and the release history to check what has actually shipped. Evaluate that history against the maintenance needs of your app.
Report bugs or request features in the issue tracker. Include the package version, browser and framework, a small reproduction, and what you expected to happen. An independent project still needs evidence you can inspect: working examples, release notes and reproducible issue reports are more useful than a blanket completeness claim.