Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

SaturationSlider

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

ソース@yamada-ui/color-picker

テーマ

SaturationSliderは、複数パーツのコンポーネントです。

export const SaturationSlider: ComponentMultiStyle<"SaturationSlider"> = {
baseStyle: {
container: {
w: "full",
rounded: "md",
cursor: "pointer",
_readOnly: { cursor: "auto" },
_disabled: {
opacity: 0.6,
cursor: "not-allowed",
},
},
inner: {
rounded: "md",
},
overlay: {
rounded: "md",
},
track: {},
thumb: {
rounded: "full",
outline: 0,
borderWidth: "3px",
borderColor: "whiteAlpha.950",
boxShadow: ["md", "dark-md"],
transitionProperty: "transform",
transitionDuration: "normal",
_active: {
transform: `scale(1.15)`,
},
_focusVisible: {
boxShadow: ["outline", "outline"],
},
},
},
sizes: {
sm: {
container: { maxW: "xs" },
thumb: { boxSize: "3" },
},
md: {
container: { maxW: "sm" },
thumb: { boxSize: "4" },
},
lg: {
container: { maxW: "md" },
thumb: { boxSize: "5" },
},
full: {
container: { maxW: "full" },
thumb: { boxSize: "5" },
},
},
defaultProps: {
size: "md",
},
}
Copied!

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

AlphaSliderEditable