ColorPicker API

API documentation for ColorPicker component

ColorPicker#

Props#

State#

Exposes#

Interfaces#

Types#

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
colorpickerColorPickerRootInstance
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
colorpickerColorPickerRootInstance
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
colorpickerColorPickerRootInstance
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
colorpickerColorPickerRootInstance
null
The ColorPicker component instance.

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
colorpickerColorPickerRootInstance
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
colorpickerColorPickerRootInstance
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
colorpickerColorPickerRootInstance
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
colorpickerColorPickerRootInstance
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
colorpickerColorPickerRootInstance
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
colorpickerColorPickerRootInstance
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
colorpickerColorPickerRootInstance
null
The ColorPicker component instance.

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#