RE

React Colorful

react-colorful

🎨 A tiny (3,1 KB) color picker component for React and Preact apps. Fast, well-tested, dependency-free, mobile-friendly and accessible

Component Libraries
react
color picker
react-component
colorpicker
tiny
hex
color
front-end
color-picker
accessible
Stars
3.6k
Weekly
3.8M
Open issues
37
Bundle
~25 kB

Installation

npm install react-colorful

Code example

import { Button } from "react-colorful";

export function Example() {
  return (
    <div className="flex gap-2">
      <Button>Primary</Button>
      <Button variant="outline">Secondary</Button>
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by Vlad Shilov
  • 3.8M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 37 open issues on GitHub

FAQs

Alternatives & similar libraries