Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

ColorSwatch

ColorSwatch is a component that displays color samples.

Source@yamada-ui/color-picker

Theming

The ColorSwatch is a multi part component.

export const ColorSwatch: ComponentMultiStyle<"ColorSwatch"> = {
baseStyle: {
container: {},
overlay: { boxSize: "full" },
},
sizes: {
xs: {
container: { boxSize: "6", rounded: "sm" },
overlay: { rounded: "sm" },
},
sm: {
container: { boxSize: "8", rounded: "md" },
overlay: { rounded: "md" },
},
md: {
container: { boxSize: "10", rounded: "md" },
overlay: { rounded: "md" },
},
lg: {
container: { boxSize: "12", rounded: "md" },
overlay: { rounded: "md" },
},
},
variants: {
basic: {},
rounded: {
container: { rounded: "full" },
overlay: { rounded: "full" },
},
},
defaultProps: {
size: "sm",
variant: "basic",
},
}
Copied!

Edit this page on GitHub

PreviousInfiniteScrollAreaNextDataList