color
Description
The color used for the slider.
Type
string
Default
#ffffff
Leave Yamada UI a star
StarAlphaSlider
is a component used to allow the user to select color transparency.
Description
The color used for the slider.
Type
string
Default
#ffffff
Description
The visual color appearance of the component.
Type
"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"
Description
The initial value of the slider.
Type
number
Description
If false
, the slider handle will not capture focus when value changes.
Type
boolean
Default
true
Description
Props for slider input element.
Type
HTMLUIProps<"input">
Description
If true
, the form control will be disabled.
Type
boolean
Default
false
Description
If true
, the form control will be invalid.
Type
boolean
Default
false
Description
If true
, the form control will be readonly.
Type
boolean
Default
false
Description
If true
, the form control will be required.
Type
boolean
Default
false
Description
The maximum allowed value of the slider. Cannot be less than min.
Type
number
Default
1
Description
The minimum allowed value of the slider. Cannot be greater than max.
Type
number
Default
0
Description
The name attribute of the hidden input
field.
This is particularly useful in forms.
Type
string
Description
Function called whenever the slider value changes.
Type
(value: number) => void
Description
Function called when the user is done selecting a new value.
Type
(value: number) => void
Description
Function called when the user starts selecting a new value.
Type
(value: number) => void
Description
The overlay used for the slider.
Type
HTMLUIProps<"div">[]
Description
The size of the AlphaSlider.
Type
"sm" | "md" | "lg"
Default
md
Description
The step in which increments or decrements have to be made.
Type
number
Default
1
Description
The CSS background
property. Used in background
of thumb element.
Type
UIValue<"border" | "link" | "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | ... 315 more ... | Background<...>>
Description
Props for slider thumb element.
Type
HTMLUIProps<"div">
Description
Props for slider track element.
Type
HTMLUIProps<"div">
Description
The value of the slider.
Type
number
Description
The variant of the AlphaSlider.
Type
string
Description
If true
, the slider has an inner box-shadow
.
Type
boolean
Default
true
Edit this page on GitHub