Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

ColorSwatch

ColorPickerは、色の見本を表示するコンポーネントです。

ソース@yamada-ui/color-picker

Props

ColorSwatchProps

color

説明

The color used for the swatch element.

タイプ

UIValue<"border" | "link" | Color | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | "whiteAlpha.500" | ... 319 more ... | "link.950">

デフォルト

#ffffff00

colorScheme

説明

The visual color appearance of the component.

タイプ

"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"

isRounded

説明

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

タイプ

boolean

デフォルト

false

overlays

説明

The overlay used for the swatch element.

タイプ

HTMLUIProps<"div">[]

size

説明

The size of the ColorSwatch.

タイプ

"sm" | "md" | "lg"

デフォルト

md

variant

説明

The variant of the ColorSwatch.

タイプ

"basic" | "rounded"

デフォルト

basic

withShadow

説明

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

タイプ

boolean

デフォルト

true

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

InfiniteScrollAreaMarkdown