Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

SaturationSlider

SaturationSliderは、ユーザーが色の彩度を選択するために使用されるコンポーネントです。

ソース@yamada-ui/color-picker

Props

SaturationSliderProps

colorScheme

説明

The visual color appearance of the component.

タイプ

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

defaultValue

説明

The initial value of the saturation slider.

タイプ

Hsv

デフォルト

[0, 0, 1]

focusThumbOnChange

説明

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

タイプ

boolean

デフォルト

true

innerProps

説明

Props for saturation slider inner element.

タイプ

HTMLUIProps<"div">

inputProps

説明

Props for saturation slider input element.

タイプ

HTMLUIProps<"input">

isDisabled

説明

If true, the form control will be disabled.

タイプ

boolean

デフォルト

false

isInvalid

説明

If true, the form control will be invalid.

タイプ

boolean

デフォルト

false

isReadOnly

説明

If true, the form control will be readonly.

タイプ

boolean

デフォルト

false

isRequired

説明

If true, the form control will be required.

タイプ

boolean

デフォルト

false

name

説明

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

タイプ

string

onChange

説明

Function called whenever the saturation slider value changes.

タイプ

(value: Hsv) => void

onChangeEnd

説明

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

タイプ

(value: Hsv) => void

onChangeStart

説明

Function called when the user starts selecting a new value.

タイプ

(value: Hsv) => void

overlays

説明

The overlay used for the saturation slider.

タイプ

Overlay[]

ratio

説明

The aspect ratio of the saturation slider.

タイプ

UIValue<number>

デフォルト

'16 / 9'

size

説明

The size of the SaturationSlider.

タイプ

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

デフォルト

md

step

説明

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

タイプ

number

デフォルト

0.01

thumbColor

説明

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

タイプ

UIValue<"border" | "link" | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | "whiteAlpha.500" | "whiteAlpha.600" | ... 319 more ... | Background<...>>

thumbProps

説明

Props for saturation slider thumb element.

タイプ

HTMLUIProps<"div">

trackProps

説明

Props for saturation slider track element.

タイプ

HTMLUIProps<"div">

value

説明

The value of the saturation slider.

タイプ

Hsv

variant

説明

The variant of the SaturationSlider.

タイプ

string

withShadow

説明

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

タイプ

boolean

デフォルト

true

GitHubでこのページを編集する

AlphaSliderEditable