Search
MaterialComponentsDocs
THE MATERIAL COMPONENT LIBRARY

Material Design.
Made for the web.

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

bun add material
npm install material
pnpm add material
yarn add material
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 SolidJS components, with server rendering. In TypeScript.

03 / LIGHTWEIGHT

Small by design.

Tree-shakable, with zero runtime dependencies: a 3.0 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 SolidJS. 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.0 KB, loads once; each component then adds 0.7–10.4 KB of JavaScript, gzip, across all 36 components. material's own measurement, on material 3.16.6. Every component's size

What each component adds over material's core, JavaScript, gzip
CategoryComponents
ActionsButton +4.4 KB, FAB +2.3 KB
Selection & inputCheckbox +2.6 KB, Text field +5.7 KB
NavigationTabs +10.4 KB, Navigation bar +2.9 KB
ContainmentCard +3.7 KB, Dialog +9.2 KB
CommunicationSnackbar +9.2 KB, Tooltip +3.3 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.