react-colorful
react-colorful copied to clipboard
Is 2.8 KB correct?
In features section written that react-colorful size is 2.8 kb with a link to why react colorfull that have a compassion table with 4.5 kb gzipped
Hi! 4,5 KB is the size of all components react-colorful provides (~13 color pickers and 1 text input).
See https://github.com/omgovich/react-colorful/blob/master/src/index.ts
Most of the people use only HexColorPicker which costs about 2,8 KB (thanks to tree-shaking).
Some of the pickers (such as HsvColorPicker) are even lighter.
You should explain it in the readme, it can be confusing, as you are referencing this table right after writing 2.8 KB.
From https://bundlephobia.com/package/[email protected]:
Is Bundlephobia wrong or is there an issue with how this package does tree shaking?