ColorInput

A text input with an integrated color picker preview that allows for advanced hex color selection.

When To Use

  • Used when the user needs to customize the color selection.

Basic Usage

The simplest usage.

Label and Error States

ColorInput supports custom labels and visual validation states.

Invalid color selection

Disabled

Set to disabled state.

Properties

Property
Description
Type
Default

value

The current hex color value. string '#000000'

label

The label to display above the input. string ''

class

Additional CSS classes for styling. string ''

error

Indicates an error state or displays an error message string | boolean

success

Indicates a success state or displays a success message string | boolean

disabled

Disables the component boolean false