Menhir

Bundle size

Each component is its own entry point, so an app pays only for the components it imports. Every size on this page is minified and gzipped: what a browser downloads.

Sizes

Other libraries

Each library's version of the same components, measured the same way. Beside each size is its difference from Menhir's.

These are sizes only. The libraries differ in API and in what each component includes, so a larger size can come with features Menhir leaves out.

Minified and gzipped, each library's framework left out
ComponentMenhirSolid 2.0Base UIReactRadixReactKobalteSolid 1.xcorvuSolid 1.x
Accordion1.5 kB8.6 kB, 466% larger than Menhir8.5 kB, 460% larger than Menhir10.3 kB, 572% larger than Menhir4.2 kB, 177% larger than Menhir
Alert Dialog3.4 kB21.7 kB, 542% larger than Menhir13.4 kB, 298% larger than Menhir8.4 kB, 150% larger than MenhirNone
Autocomplete10.8 kB46.6 kB, 333% larger than MenhirNoneNoneNone
Checkbox1.7 kB7.5 kB, 341% larger than Menhir5.6 kB, 227% larger than Menhir4.0 kB, 133% larger than MenhirNone
Checkbox Group2.4 kB4.1 kB, 72% larger than MenhirNoneNoneNone
Collapsible1.2 kB6.8 kB, 458% larger than Menhir4.8 kB, 292% larger than Menhir2.8 kB, 132% larger than Menhir2.4 kB, 94% larger than Menhir
Combobox11.6 kB48.3 kB, 317% larger than MenhirNone29.1 kB, 152% larger than MenhirNone
Context Menu12.0 kB46.8 kB, 291% larger than Menhir30.5 kB, 154% larger than Menhir26.3 kB, 119% larger than MenhirNone
Dialog3.5 kB21.8 kB, 519% larger than Menhir13.1 kB, 273% larger than Menhir8.4 kB, 138% larger than Menhir5.9 kB, 68% larger than Menhir
Field1.8 kB9.0 kB, 399% larger than MenhirNoneNoneNone
Form1.0 kB2.6 kB, 160% larger than Menhir5.2 kB, 419% larger than MenhirNoneNone
Input0.9 kB4.0 kB, 329% larger than MenhirNoneNoneNone
Menu11.9 kB57.5 kB, 383% larger than Menhir30.3 kB, 155% larger than Menhir26.9 kB, 126% larger than MenhirNone
Menubar12.4 kB6.3 kB1, 49% smaller than Menhir30.8 kB, 148% larger than Menhir27.4 kB, 121% larger than MenhirNone
Meter1.1 kB3.0 kB, 182% larger than MenhirNone2.8 kB, 166% larger than MenhirNone
Navigation Menu2.6 kB35.9 kB, 1291% larger than Menhir12.5 kB, 386% larger than Menhir29.1 kB, 1027% larger than MenhirNone
Number Field3.1 kB12.5 kB, 298% larger than MenhirNone8.4 kB, 166% larger than MenhirNone
Popover9.6 kB38.3 kB, 299% larger than Menhir23.5 kB, 145% larger than Menhir17.2 kB, 79% larger than Menhir15.5 kB, 61% larger than Menhir
Progress1.2 kB3.4 kB, 181% larger than Menhir2.9 kB, 143% larger than Menhir3.1 kB, 164% larger than MenhirNone
Radio2.5 kB11.3 kB, 351% larger than Menhir10.1 kB, 303% larger than Menhir4.0 kB, 61% larger than MenhirNone
Select11.8 kB42.1 kB, 257% larger than Menhir30.5 kB, 158% larger than Menhir27.4 kB, 132% larger than MenhirNone
Separator0.7 kB1.8 kB, 143% larger than Menhir1.9 kB, 151% larger than Menhir1.1 kB, 44% larger than MenhirNone
Switch1.7 kB5.6 kB, 240% larger than Menhir4.7 kB, 184% larger than Menhir3.5 kB, 110% larger than MenhirNone
Tabs2.0 kB12.4 kB, 514% larger than Menhir8.9 kB, 342% larger than Menhir10.1 kB, 399% larger than MenhirNone
Toggle1.0 kB4.1 kB, 311% larger than Menhir2.8 kB, 181% larger than Menhir1.7 kB, 73% larger than MenhirNone
Toggle Group1.9 kB5.9 kB, 208% larger than Menhir8.2 kB, 330% larger than Menhir8.9 kB, 368% larger than MenhirNone
Tooltip9.8 kB31.6 kB, 223% larger than Menhir19.3 kB, 97% larger than Menhir14.2 kB, 45% larger than Menhir14.2 kB, 45% larger than Menhir
All togetherShared code counted once29.8 kB129.6 kB, 334% larger than Menhir57.8 kB, 141% larger than Menhir20 of 27 components, against 24.0 kB56.0 kB, 103% larger than Menhir22 of 27 components, against 27.6 kB20.8 kB, 57% larger than Menhir5 of 27 components, against 13.2 kB
  1. 1 Base UI's @base-ui/react/menubar is the bar alone. Its menus are built from the parts of @base-ui/react/menu, measured in the Menu row, so an app with a Base UI menubar imports both.
  • Base UI: @base-ui/react/accordion 1.9.0, @base-ui/react/alert-dialog 1.9.0, @base-ui/react/autocomplete 1.9.0, @base-ui/react/checkbox 1.9.0, @base-ui/react/checkbox-group 1.9.0, @base-ui/react/collapsible 1.9.0, @base-ui/react/combobox 1.9.0, @base-ui/react/context-menu 1.9.0, @base-ui/react/dialog 1.9.0, @base-ui/react/field 1.9.0, @base-ui/react/form 1.9.0, @base-ui/react/input 1.9.0, @base-ui/react/meter 1.9.0, @base-ui/react/menu 1.9.0, @base-ui/react/menubar 1.9.0, @base-ui/react/navigation-menu 1.9.0, @base-ui/react/number-field 1.9.0, @base-ui/react/popover 1.9.0, @base-ui/react/progress 1.9.0, @base-ui/react/radio-group + @base-ui/react/radio 1.9.0, @base-ui/react/select 1.9.0, @base-ui/react/separator 1.9.0, @base-ui/react/switch 1.9.0, @base-ui/react/tabs 1.9.0, @base-ui/react/toggle 1.9.0, @base-ui/react/toggle-group 1.9.0, @base-ui/react/tooltip 1.9.0
  • Radix: @radix-ui/react-accordion 1.3.1, @radix-ui/react-alert-dialog 1.2.1, @radix-ui/react-checkbox 1.4.1, @radix-ui/react-collapsible 1.2.1, @radix-ui/react-context-menu 2.4.1, @radix-ui/react-dialog 1.3.1, @radix-ui/react-form 0.3.0, @radix-ui/react-dropdown-menu 2.2.1, @radix-ui/react-menubar 1.2.1, @radix-ui/react-navigation-menu 1.4.1, @radix-ui/react-popover 1.3.1, @radix-ui/react-progress 1.2.1, @radix-ui/react-radio-group 1.5.1, @radix-ui/react-select 2.4.1, @radix-ui/react-separator 1.2.0, @radix-ui/react-switch 1.4.1, @radix-ui/react-tabs 1.2.1, @radix-ui/react-toggle 1.2.1, @radix-ui/react-toggle-group 1.2.1, @radix-ui/react-tooltip 1.4.1
  • Kobalte: @kobalte/core/accordion 0.13.14, @kobalte/core/alert-dialog 0.13.14, @kobalte/core/checkbox 0.13.14, @kobalte/core/collapsible 0.13.14, @kobalte/core/combobox 0.13.14, @kobalte/core/context-menu 0.13.14, @kobalte/core/dialog 0.13.14, @kobalte/core/meter 0.13.14, @kobalte/core/dropdown-menu 0.13.14, @kobalte/core/menubar 0.13.14, @kobalte/core/navigation-menu 0.13.14, @kobalte/core/number-field 0.13.14, @kobalte/core/popover 0.13.14, @kobalte/core/progress 0.13.14, @kobalte/core/radio-group 0.13.14, @kobalte/core/select 0.13.14, @kobalte/core/separator 0.13.14, @kobalte/core/switch 0.13.14, @kobalte/core/tabs 0.13.14, @kobalte/core/toggle-button 0.13.14, @kobalte/core/toggle-group 0.13.14, @kobalte/core/tooltip 0.13.14
  • corvu: corvu/accordion 0.7.2, corvu/disclosure 0.7.2, corvu/dialog 0.7.2, corvu/popover 0.7.2, corvu/tooltip 0.7.2

How it is measured

The size of an entry point is what it adds to an app that imports it and uses every part of it, bundled with Rolldown, minified and gzipped. solid-js and @solidjs/web are left out, since the app already has them.

The app is a production build. Warnings and errors that Menhir shows only in development are not in it, so they are not counted.

The other libraries are measured the same way, each module with every part of it, and each library's framework is left out as Solid is: react and react-dom for the React libraries, solid-js for the Solid ones. The sizes are of the versions listed under the table, and are measured again whenever this site is built.

A component's size counts all the code it needs, so code that two components share is counted in both. The last row of the comparison is of the components imported together, as in an app that uses them all: there shared code is counted once.