Join our Discord Community
Forms

Color Picker

Interactive color selection component for React and Next.js applications. Built with TypeScript support, Tailwind CSS styling, and shadcn/ui design featuring drag controls, eyedropper tool, and multiple format outputs.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/color-picker.json
npx shadcn@latest add https://www.shadcn.io/registry/color-picker.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/color-picker.json
bunx shadcn@latest add https://www.shadcn.io/registry/color-picker.json

Features

  • Interactive selection - Drag-based color picking with hue and alpha sliders using JavaScript
  • EyeDropper tool - Screen color sampling with native browser API support for React apps
  • Multiple formats - HEX, RGB, HSL, CSS outputs with TypeScript type safety
  • Real-time preview - Live color updates with smooth animations using Tailwind CSS
  • Accessible design - Keyboard navigation and screen reader support using shadcn/ui patterns
  • Open source - Free color picker component for Next.js applications

Use Cases

  • Design tools - Color selection for themes, branding, customization
  • Content creation - Text colors, backgrounds, UI theming
  • E-commerce - Product customization, variant selection
  • Admin panels - Brand settings, theme configuration

Implementation

Uses the color library for format conversion. Supports controlled/uncontrolled modes. EyeDropper requires HTTPS in production.