Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

SaturationSlider

SaturationSlider is a component used to allow the user to select a color saturation.

Source@yamada-ui/color-picker

Props

SaturationSliderProps

colorScheme

Description

The visual color appearance of the component.

Type

"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"

defaultValue

Description

The initial value of the saturation slider.

Type

Hsv

Default

[0, 0, 1]

focusThumbOnChange

Description

If false, the saturation slider handle will not capture focus when value changes.

Type

boolean

Default

true

innerProps

Description

Props for saturation slider inner element.

Type

HTMLUIProps

inputProps

Description

Props for saturation slider input element.

Type

HTMLUIProps<"input">

isDisabled

Description

If true, the form control will be disabled.

Type

boolean

Default

false

isInvalid

Description

If true, the form control will be invalid.

Type

boolean

Default

false

isReadOnly

Description

If true, the form control will be readonly.

Type

boolean

Default

false

isRequired

Description

If true, the form control will be required.

Type

boolean

Default

false

name

Description

The name attribute of the hidden input field. This is particularly useful in forms.

Type

string

onChange

Description

Function called whenever the saturation slider value changes.

Type

(value: Hsv) => void

onChangeEnd

Description

Function called when the user is done selecting a new value.

Type

(value: Hsv) => void

onChangeStart

Description

Function called when the user starts selecting a new value.

Type

(value: Hsv) => void

overlays

Description

The overlay used for the saturation slider.

Type

Overlay[]

ratio

Description

The aspect ratio of the saturation slider.

Type

UIValue<number>

Default

'16 / 9'

size

Description

The size of the SaturationSlider.

Type

"sm" | "md" | "lg" | "full"

Default

"md"

step

Description

The step in which increments or decrements have to be made.

Type

number

Default

0.01

thumbColor

Description

The CSS background property. Used in background of thumb element.

Type

UIValue<"border" | ({} & string) | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | "amber.950" | ... 318 more ... | Background<...>>

thumbProps

Description

Props for saturation slider thumb element.

Type

HTMLUIProps

trackProps

Description

Props for saturation slider track element.

Type

HTMLUIProps

value

Description

The value of the saturation slider.

Type

Hsv

variant

Description

The variant of the SaturationSlider.

Type

string

withShadow

Description

If true, the slider has an inner box-shadow.

Type

boolean

Default

true

Edit this page on GitHub

PreviousAlphaSliderNextEditable