Search
HomeGet startedDevelopStylesComponents
Develop index

Bundle size

PublishedUpdated

material is tree-shakable: an app pays for the components it imports, and nothing else. Every figure on this page is material's own measurement for material 3.17.0-next.8, measured at commit 559dbf8ba on 2026-12-01.

Size table

Each row imports only that component from the package entry, the way an app does, and counts what a bundler keeps. Minified and Gzipped are the initial load: the code the import pulls in before anything loads on demand. vs core is the gzipped cost over material's core, the 3.7 KB kernel every component starts from. Deferred is the gzipped code that loads later through import(), only when a feature needs it (a button's progress indicator, for example). The figures are JavaScript; stylesheets are measured separately, in Why material.

Component Minified Gzipped vs core Deferred
Core (pipe, createBase, withElement) 9.3 KB 3.7 KB — —
Badges 17.0 KB 5.9 KB +2.2 KB —
bottom-app-bar 12.8 KB 4.8 KB +1.1 KB —
Bottom sheets 23.4 KB 8.8 KB +5.1 KB —
Side sheets 19.8 KB 7.4 KB +3.6 KB —
Buttons 23.7 KB 8.4 KB +4.6 KB +7.0 KB
Button groups 42.1 KB 14.2 KB +10.5 KB +7.0 KB
Cards 22.9 KB 7.9 KB +4.2 KB +10.0 KB
Carousel 38.0 KB 14.0 KB +10.3 KB —
Checkbox 18.0 KB 6.3 KB +2.6 KB —
Chips 30.1 KB 10.0 KB +6.3 KB —
Date pickers 38.0 KB 13.6 KB +9.9 KB —
Dialogs 39.6 KB 13.2 KB +9.5 KB +7.0 KB
Divider 11.4 KB 4.4 KB +0.7 KB —
Navigation drawer 31.7 KB 11.5 KB +7.7 KB —
FABs 17.2 KB 6.3 KB +2.5 KB —
FAB menu 32.0 KB 11.3 KB +7.6 KB +12.0 KB
Extended FABs 19.7 KB 7.0 KB +3.3 KB —
Icon buttons 20.8 KB 7.2 KB +3.5 KB —
Lists 22.6 KB 8.1 KB +4.3 KB —
Menus 43.4 KB 14.4 KB +10.7 KB +2.4 KB
Navigation bar 17.8 KB 6.7 KB +3.0 KB —
Navigation rail 20.3 KB 7.5 KB +3.8 KB —
Progress indicators 30.7 KB 11.3 KB +7.6 KB —
Loading indicator 24.3 KB 9.9 KB +6.2 KB —
Split buttons 30.2 KB 10.8 KB +7.1 KB +18.7 KB
Radio button 16.7 KB 5.8 KB +2.1 KB —
Search 35.2 KB 12.0 KB +8.3 KB —
Select 43.7 KB 14.3 KB +10.6 KB +12.1 KB
Sliders 36.5 KB 12.8 KB +9.1 KB —
Snackbar 38.7 KB 13.4 KB +9.7 KB +7.0 KB
Switch 20.4 KB 6.9 KB +3.2 KB —
Tabs 43.6 KB 14.3 KB +10.6 KB +7.0 KB
Text fields 29.8 KB 9.5 KB +5.8 KB —
Time pickers 34.8 KB 12.1 KB +8.4 KB —
App bars 14.7 KB 5.3 KB +1.6 KB —
Tooltips 20.8 KB 7.5 KB +3.8 KB —
Toolbars 35.2 KB 12.1 KB +8.4 KB +7.0 KB
Everything (export * from 'material') 428.0 KB 137.4 KB +133.7 KB +2.4 KB

An app pays the core once, plus each component's vs core. Components share code, so two components together usually cost less than their two figures added up.

Tree-shaking

Only the components you import reach your bundle. material checks this for all 37 components: the measurement imports each one alone and fails if its bundle carries another component's code.

For example, importing only the button produces a 8.4 KB gzipped bundle, +4.6 KB over the core:

// Only the button is bundled: no other component
import { createButton } from 'material';

Bundlephobia reports the size of everything the package exports at once (export * from 'material', 137.4 KB here). An app that imports a few components pays a fraction of that.

Measuring

The numbers come from material's own script, scripts/size.ts, in the material repository:

bun run size

It writes SIZES.md with bun run size --markdown > SIZES.md, and material's CI fails when a row drifts from a fresh measurement, so the table at each release tag is that release's measurement. This site copies the table for the version it runs (bun run sizes:sync) and refuses to build while the copy names another version.