npm / react-colorful
react-colorful
What changed in react-colorful 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
1 new APIs and options1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-colorful 53 changes
New APIs and options 1
Adds a callback that fires when the user finishes changing a color, useful for undo/redo, saving to a database, or other expensive operations.
Behavior and default changes 1
The picker injects its styles into the closest ShadowRoot when mounted inside a shadow tree, so it renders correctly in web components and other shadow-DOM-based setups without API changes.
Fixes and other changes 1
Fixes TypeScript compatibility with React 19.