ColorPicker API

API documentation for ColorPicker component

ColorPicker#

Props#

Defines valid properties in ColorPicker component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerInstance) => ReactNode)
null
The children to render.
valueColorInstance
null
The value of the color picker.
defaultValueColorInstance
null
The default value of the color picker.
formatColorSpace
null
The format of the color picker.
disabledboolean
null
Whether the color picker is disabled.
onValueChange(event: useColorPickerChangeEvent) => void
null
Callback fired when the color picker's value is changed.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

State#

Defines valid state in ColorPicker component.

nametypedefaultdescription
valueColorInstance
null
The color of the color picker.
isAreaDraggingboolean
null
Whether the color picker area is dragging.

Exposes#

Defines the methods and properties exposed by ColorPicker component.

nametypedefaultdescription
stateuseColorPickerState
null
The state of the useColorPicker.
areaValueColorInstance
null
The area value of the color picker.
areaChannelsColor2DAxes
null
The channels of the area of the color picker.
setValue(value: unknown) => void
null
Sets the value of the color picker.
handleAreaPointerDown(event: PointerEvent) => void
null
Handles the area pointer down event.
handleAreaPointerMove(event: PointerEvent) => void
null
Handles the area pointer move event.
handleAreaPointerUp(event: PointerEvent) => void
null
Handles the area pointer up event.
handleAreaKeyDown(event: KeyboardEvent<HTMLElement>) => void
null
Handles the area key down event.
areaStylesCSSProperties
null
The styles of the area of the color picker.
swatchStylesCSSProperties
null
The styles of the swatch of the color picker.
openEyeDropper() => void
null
Opens the eye dropper.
syncChannelInputs(color?: ColorInstance) => void
null
Syncs the channel inputs.
registerInputEl(el: { elementRef: RefObject<HTMLInputElement> }) => void
null
Registers an input element.

Interfaces#

Defines passthrough(pt) options of ColorPicker component.

nametypedefaultdescription
rootColorPickerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPicker component.

values
ComponentInstance<ColorPickerProps, ColorPickerState, ColorPickerExposes>

ColorPickerArea#

Props#

Defines valid properties in ColorPickerArea component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerAreaInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerAreaInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerAreaPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerAreaInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerArea component.

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPicker component instance.

Interfaces#

Defines passthrough(pt) options of ColorPickerArea component.

nametypedefaultdescription
rootColorPickerAreaPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerArea component.

values
ComponentInstance<ColorPickerAreaProps, ColorPickerAreaState, ColorPickerAreaExposes>

ColorPickerAreaBackground#

Props#

Defines valid properties in ColorPickerAreaBackground component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerAreaBackgroundInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerAreaBackgroundInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerAreaBackgroundPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerAreaBackgroundInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerAreaBackground component.

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPickerArea component instance.

Interfaces#

Defines passthrough(pt) options of ColorPickerAreaBackground component.

nametypedefaultdescription
rootColorPickerAreaBackgroundPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerAreaBackground component.

values
ComponentInstance<ColorPickerAreaBackgroundProps, ColorPickerAreaBackgroundState, ColorPickerAreaBackgroundExposes>

ColorPickerAreaThumb#

Props#

Defines valid properties in ColorPickerAreaThumb component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerAreaThumbInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerAreaThumbInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerAreaThumbPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerAreaThumbInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerAreaThumb component.

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPickerArea component instance.

Interfaces#

Defines passthrough(pt) options of ColorPickerAreaThumb component.

nametypedefaultdescription
rootColorPickerAreaThumbPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerAreaThumb component.

values
ComponentInstance<ColorPickerAreaThumbProps, ColorPickerAreaThumbState, ColorPickerAreaThumbExposes>

ColorPickerSlider#

Props#

Defines valid properties in ColorPickerSlider component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerSliderInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerSliderInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerSliderPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerSliderInstance) => ReactNode)
null
The children to render.
channelColorSliderChannel
null
The channel of the slider.
orientation"horizontal" | "vertical"
null
The orientation of the slider.
disabledboolean
null
Whether the slider is disabled.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerSlider component.

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPicker component instance.
stateuseColorPickerSliderState
null
The state of the useColorPickerSlider .
handleSliderPointerDown(event: PointerEvent) => void
null
Handles the pointer down event.
handleSliderPointerMove(event: PointerEvent) => void
null
Handles the pointer move event.
handleSliderPointerUp(event: PointerEvent) => void
null
Handles the pointer up event.
handleSliderKeyDown(event: KeyboardEvent<HTMLElement>) => void
null
Handles the key down event.
sliderStyleCSSProperties
null
The style of the slider.
channelValuenumber
null
The value of the channel.
channelRangeColorChannelRange
null
The range of the channel.

Interfaces#

Defines passthrough(pt) options of ColorPickerSlider component.

nametypedefaultdescription
rootColorPickerSliderPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerSlider component.

values
ComponentInstance<ColorPickerSliderProps, ColorPickerSliderState, ColorPickerSliderExposes>

ColorPickerSliderTrack#

Props#

Defines valid properties in ColorPickerSliderTrack component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerSliderTrackInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerSliderTrackInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerSliderTrackPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerSliderTrackInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerSliderTrack component

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPicker component instance.

Interfaces#

Defines passthrough(pt) options of ColorPickerSliderTrack component.

nametypedefaultdescription
rootColorPickerSliderTrackPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerSliderTrack component.

values
ComponentInstance<ColorPickerSliderTrackProps, ColorPickerSliderTrackState, ColorPickerSliderTrackExposes>

ColorPickerSliderThumb#

Props#

Defines valid properties in ColorPickerSliderThumb component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerSliderThumbInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerSliderThumbInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerSliderThumbPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerSliderThumbInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerSliderThumb component

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPicker component instance.

Interfaces#

Defines passthrough(pt) options of ColorPickerSliderThumb component.

nametypedefaultdescription
rootColorPickerSliderThumbPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerSliderThumb component.

values
ComponentInstance<ColorPickerSliderThumbProps, ColorPickerSliderThumbState, ColorPickerSliderThumbExposes>

ColorPickerTransparencyGrid#

Props#

Defines valid properties in ColorPickerTransparencyGrid component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerTransparencyGridInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerTransparencyGridInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerTransparencyGridPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerTransparencyGridInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerTransparencyGrid component

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPicker component instance.

Interfaces#

Defines passthrough(pt) options of ColorPickerTransparencyGrid component.

nametypedefaultdescription
rootColorPickerTransparencyGridPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerTransparencyGrid component.

values
ComponentInstance<ColorPickerTransparencyGridProps, ColorPickerTransparencyGridState, ColorPickerTransparencyGridExposes>

ColorPickerSwatch#

Props#

Defines valid properties in ColorPickerSwatch component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerSwatchInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerSwatchInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerSwatchPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerSwatchInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerSwatch component

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPicker component instance.

Interfaces#

Defines passthrough(pt) options of ColorPickerSwatch component.

nametypedefaultdescription
rootColorPickerSwatchPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerSwatch component.

values
ComponentInstance<ColorPickerSwatchProps, ColorPickerSwatchState, ColorPickerSwatchExposes>

ColorPickerSwatchBackground#

Props#

Defines valid properties in ColorPickerSwatchBackground component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerSwatchBackgroundInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerSwatchBackgroundInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerSwatchBackgroundPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerSwatchBackgroundInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerSwatchBackground component

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPicker component instance.

Interfaces#

Defines passthrough(pt) options of ColorPickerSwatchBackground component.

nametypedefaultdescription
rootColorPickerSwatchBackgroundPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerSwatchBackground component.

values
ComponentInstance<ColorPickerSwatchBackgroundProps, ColorPickerSwatchBackgroundState, ColorPickerSwatchBackgroundExposes>

ColorPickerEyeDropper#

Props#

Defines valid properties in ColorPickerEyeDropper component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerEyeDropperInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerEyeDropperInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerEyeDropperPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerEyeDropperInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerEyeDropper component

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPicker component instance.

Interfaces#

Defines passthrough(pt) options of ColorPickerEyeDropper component.

nametypedefaultdescription
rootColorPickerEyeDropperPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerEyeDropper component.

values
ComponentInstance<ColorPickerEyeDropperProps, ColorPickerEyeDropperState, ColorPickerEyeDropperExposes>

ColorPickerInput#

Props#

Defines valid properties in ColorPickerInput component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ColorPickerInputInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ColorPickerInputInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ColorPickerInputPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ColorPickerInputInstance) => ReactNode)
null
The children to render.
channelColorInputChannel
null
The channel of the input.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ColorPickerInput component

nametypedefaultdescription
colorpickerColorPickerInstance
null
The ColorPicker component instance.
stateuseColorPickerInputState
null
The state of the useColorPickerInput.
channelValuestring
null
The value of the input.
channelRangeColorChannelRange
null
The range of the input.
type"number" | "text"
null
The type of the input.
handleBlur(event: FocusEvent<HTMLInputElement>) => void
null
Handles the blur event.
handleKeyDown(event: KeyboardEvent<HTMLInputElement>) => void
null
Handles the key down event.

Interfaces#

Defines passthrough(pt) options of ColorPickerInput component.

nametypedefaultdescription
rootColorPickerInputPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ColorPickerInput component.

values
ComponentInstance<ColorPickerInputProps, ColorPickerInputState, ColorPickerInputExposes>

useColorPicker#

Props#

State#

Exposes#

Interfaces#

Types#

useColorPickerInput#

Props#

State#

Exposes#

Events#

Interfaces#

Types#

useColorPickerSlider#

Props#

State#

Exposes#

Events#

Interfaces#

Types#