# What changed in react-colorful

> 3 changes in react-colorful 5 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/react-colorful/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## react-colorful 5

### New APIs and options

- Adds a callback that fires when the user finishes changing a color, useful for undo/redo, saving to a database, or other expensive operations. (5.7.0) — [release notes](https://github.com/omgovich/react-colorful/releases/tag/5.7.0)

### Behavior and default changes

- 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. (5.8.0) — [release notes](https://github.com/omgovich/react-colorful/releases/tag/v5.8.0)

### Fixes and other changes

- Fixes TypeScript compatibility with React 19. (5.6.2) — [release notes](https://github.com/omgovich/react-colorful/releases/tag/v5.6.2)
