Leave Yamada UI a star

Star
Yamada UIYamada UIv1.7.2

ColorSwatch

ColorSwatch is a component that displays color samples.

Source@yamada-ui/color-picker

Props

ColorSwatchProps

color

Description

The color used for the swatch element.

Type

UIValue<"border" | Color | ({} & string) | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | ... 318 more ... | "yellow.950">

Default

#ffffff00

colorScheme

Description

The visual color appearance of the component.

Type

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

fullRounded

Description

If true, the color swatch will be perfectly round. Else, it'll be slightly round.

Type

boolean

Default

false

isRounded

Deprecated

Description

If true, the color swatch will be perfectly round. Else, it'll be slightly round.

Deprecated

Use fullRounded instead.

Type

boolean

Default

false

overlays

Description

The overlay used for the swatch element.

Type

HTMLUIProps[]

size

Description

The size of the ColorSwatch.

Type

"xs" | "sm" | "md" | "lg"

Default

"sm"

variant

Description

The variant of the ColorSwatch.

Type

"basic" | "rounded"

Default

"basic"

withShadow

Description

If true, the swatch element has an inner box-shadow.

Type

boolean

Default

true

Edit this page on GitHub

PreviousInfiniteScrollAreaNextMarkdown