Search
MaterialComponentsDocs
THE MATERIAL COMPONENT LIBRARY

Material Design.
Made for the web.

Expressive components. Your framework.
A little TypeScript, a lot of possibility.

Latest 3.16.17Preview 3.17.0-next.6
bun add material
npm install material
pnpm add material
yarn add material
bun add material@next
npm install material@next
pnpm add material@next
yarn add material@next
Material Design 3Tree-shakableZero runtime dependenciesOpen source
01 / EXPRESSIVE

Material 3 Expressive, today.

Google's latest Material Design, built for the web: the new shapes, motion and components, in 36 components.

02 / COMPATIBLE

One library, every stack.

Plain JavaScript factories, web components, and React, Vue, Svelte and Solid components, with server rendering. In TypeScript.

03 / LIGHTWEIGHT

Small by design.

Tree-shakable, with zero runtime dependencies: a 3.6 KB core, then each component adds from 0.7 KB gzip. See every size

COMPATIBLE

One library, every stack.

The same components, the way you build: plain JavaScript factories, web components for any page, and components for React, Vue, Svelte and Solid. They render on the server too, and every API is typed.

import { createButton } from 'material';

const save = createButton({ text: 'Save' });
document.body.append(save.element);
import 'material/elements/css';
import { defineAll } from 'material/elements';

defineAll();
// <m-button variant="filled">Save</m-button>
import { Button } from 'material/react';

<Button variant="filled">Save</Button>
import { MButton } from 'material/vue';

<MButton variant="filled">Save</MButton>
import { Button } from 'material/svelte';

<Button variant="filled">Save</Button>
import { Button } from 'material/solid';

<Button variant="filled">Save</Button>

Frameworks guide · Server rendering

Show the code for
LIGHTWEIGHT

Ship only what you use.

Every component is its own module, with its own stylesheet. Import a button and your bundler keeps the button: the other components never reach your users.

import { createButton } from 'material';
import 'material/styles/base';
import 'material/styles/button';

material's core, 3.6 KB, loads once; each component then adds 0.7–10.6 KB of JavaScript, gzip, across all 36 components. material's own measurement, on material 3.17.0-next.4. Every component's size

What each component adds over material's core, JavaScript, gzip
CategoryComponents
ActionsButton +4.6 KB, FAB +2.5 KB
Selection & inputCheckbox +2.6 KB, Text field +5.8 KB
NavigationTabs +10.6 KB, Navigation bar +2.9 KB
ContainmentCard +4.2 KB, Dialog +9.4 KB
CommunicationSnackbar +9.7 KB, Tooltip +3.8 KB
01 / EXPLORE

Find the right expression.

Try variants, sizes, and shapes in a live component playground.

02 / CUSTOMIZE

Make it feel like you.

Switch Material themes and light or dark mode. See every change as you make it.

03 / BUILD

Take it from here.

Copy your configuration and bring the component to your project. No framework required.