Color picker preview
A controlled native color and hex field pair with presets, validation, read-only and disabled states, and native form reset support.
pro · Forms · primitive
When to use
- Use it when a product interface needs a controlled native color and hex field pair with presets, validation, read-only and disabled states, and native form reset support.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than color picker.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/color-pickerImport components/ui/tidal.css, components/ui/color-picker.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/color-picker.css";
import{TidalColorPicker}from"./components/ui/color-picker";
export default()=><div className="tidal-scope"><TidalColorPicker onValueChange={() => {}} presets={[{id:"example",value:"value",label:"Demo",accessibleLabel:"Demo"}]} title={"Demo"} value={"value"}/></div>;API and props
TidalColorPicker.onValueChange (required)(value: string, source: TidalColorPickerChangeSource, event: TidalColorPickerChangeEvent) => voidCallback invoked when the value change interaction is proposed.
TidalColorPicker.presets (required)ReadonlyArray<TidalColorPreset>Required presets value accepted by this exported component.
TidalColorPicker.title (required)ReactNodeRequired title value accepted by this exported component.
TidalColorPicker.value (required)stringRequired value value accepted by this exported component.
TidalColorPicker.colorInputPropsOmit<InputHTMLAttributes<HTMLInputElement>, "disabled" | "type" | "value" | "defaultValue" | "aria-disabled" | "aria-readonly" | "children" | "readOnly"> | undefinedOptional color input props value accepted by this exported component.
TidalColorPicker.colorInputRefRef<HTMLInputElement> | undefinedOptional color input ref value accepted by this exported component.
TidalColorPicker.descriptionReactNodeOptional description value accepted by this exported component.
TidalColorPicker.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalColorPicker.eyebrowReactNodeOptional eyebrow value accepted by this exported component.
TidalColorPicker.footerReactNodeOptional footer value accepted by this exported component.
TidalColorPicker.headingLevel"h2" | "h3" | "h4" | undefinedOptional heading level value accepted by this exported component.
TidalColorPicker.hexInputPropsOmit<InputHTMLAttributes<HTMLInputElement>, "disabled" | "type" | "value" | "defaultValue" | "spellCheck" | "aria-disabled" | "aria-readonly" | "children" | "maxLength" | "pattern" | "placeholder" | "readOnly" | "required"> | undefinedOptional hex input props value accepted by this exported component.
TidalColorPicker.hexInputRefRef<HTMLInputElement> | undefinedOptional hex input ref value accepted by this exported component.
TidalColorPicker.hintReactNodeOptional hint value accepted by this exported component.
TidalColorPicker.labelsPartial<TidalColorPickerLabels> | undefinedOptional labels value accepted by this exported component.
TidalColorPicker.readOnlyboolean | undefinedOptional read only value accepted by this exported component.
TidalColorPicker.requiredboolean | undefinedOptional required value accepted by this exported component.
TidalColorPicker.resetActionTidalColorPickerResetAction | undefinedOptional reset action value accepted by this exported component.
TidalColorPicker.validationMessageReactNodeOptional validation message value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.