Leave Yamada UI a star

Star
Yamada UIYamada UIv1.5.1

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" },
},
variants: {
basic: {
container: { rounded: "md" },
overlay: { rounded: "md" },
},
rounded: {
container: { rounded: "full" },
overlay: { rounded: "full" },
},
},
sizes: {
sm: {
container: { boxSize: "6" },
},
md: {
container: { boxSize: "8" },
},
lg: {
container: { boxSize: "10" },
},
},
defaultProps: {
variant: "basic",
size: "md",
},
}
Copied!

Edit this page on GitHub

PreviousInfiniteScrollAreaNextMarkdown