abaabil

Abaabil vs Chakra UI

Both libraries, measured the same way on the same day: each entry point bundled with its own module graph, gzipped, React treated as external. All twenty-three abaabil components together come to 7,364 B. The same set from Chakra UI, over the 22 it offers, comes to 111,470 B, or 15x the size.

What Chakra UI is

A styled component set built around style props, with accessibility taken seriously throughout and a strong theming story.

chakra-ui.com

Per component, gzipped

abaabil's column is its a11y tier, the one most applications should use. 22 components are directly comparable; the widest gap is popover at 88x. Chakra UI has no equivalent for 1 of the twenty-three (toolbar), so those are left out rather than counted as a win.

JavaScript weight in gzipped bytes, abaabil against Chakra UI, per component.
ComponentabaabilChakra UIratio
button55713,57124x
dialog58033,08557x
popover49543,75888x
menu1,12046,53242x
tooltip45935,08176x
combobox1,09747,28243x
input50116,56233x
textarea50616,56233x
file50027,31455x
checkbox53423,84245x
radio44423,95254x
switch42322,87554x
select53017,42633x
slider70527,51739x
accordion36424,46767x
tabs78625,46432x
breadcrumb33513,77641x
pagination68922,33732x
progress49320,73842x
alert34114,04841x
avatar46020,96846x
badge26712,99049x
all of them, one bundle7,364111,47015x

The last row matters more than any single one above it. A library with a large shared runtime pays for it once, so the gap always narrows as you use more of it. Quoting only the widest row would be the easiest way to mislead you with real numbers.

Reading this fairly. Chakra UI puts its styles in the JavaScript, so its figures already include the styling engine.

abaabil's figures are JavaScript only, the same as every other column here, and unlike Chakra UI it arrives already styled. That cost is real and tracked separately rather than folded in: the whole stylesheet is 5,217 B gzipped if you import all of it. The method, and every library at once, is on the Why page.

When to choose Chakra UI instead

You like composing styles as props rather than as CSS, and you want a full kit that will not fight you on accessibility. For teams who dislike writing stylesheets, the ergonomics are the point.

abaabil is twenty-three components and stops there. It has no date picker, no data grid, no virtualised list, and no plans for any of them. If the thing you need is on that list, the size comparison above is irrelevant to your decision, and you should take the library that has it.

If abaabil is the right fit

Setup is four steps and the first one is npm i abaabil. Every component has its own page with a live example at the tier you would actually import. Or read when not to use it first, which is the section written to talk you out of it.

Compare against another library.