Component libraryColor picker

Color picker

Pro

A controlled native color and hex field pair with presets, validation, read-only and disabled states, and native form reset support.

npx shadcn@latest add @tidal-pro/color-picker
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/color-picker

Import components/ui/tidal.css, components/ui/color-picker.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

title, consumer-controlled six-digit hex value, onValueChange and typed presets are required. The component renders a labelled native color input plus a controlled text field with six-digit hex pattern, visible value, built-in syntax validation and optional consumer validation message. Native input attributes/form ownership and refs pass through while conflicting controlled/default/type/pattern props are excluded. Disabled blocks both fields, presets and reset; readOnly keeps the hex field readable while disabling mutation controls. Presets are native pressed buttons with visible/accessibility labels, native attributes/refs and native-handler-first prevented composition; invalid supplied preset values resolve disabled. Optional resetAction is a native type=reset button with form ownership, attributes/ref and an unprevented higher callback. Optional labels, hint, heading level, footer and native section attributes/ref remain consumer-owned. Dynamic preview and preset colors come only from supplied values through scoped CSS custom properties; component chrome remains neutral. The component performs no clipboard, network, request, analytics, storage or persistence action.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.