Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

Tag

Tagは、アイテムを説明するキーワードを使用して分類または整理するコンポーネントです。

ソース@yamada-ui/tag

Props

TagProps

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"

デフォルト

primary

isDisabled

説明

If true, the tag is disabled.

タイプ

boolean

デフォルト

false

leftIcon

説明

Icon to be displayed to the left of the tag.

タイプ

ReactElement<any, string | JSXElementConstructor<any>>

onClose

説明

Function to be executed when the close button is clicked.

タイプ

MouseEventHandler<HTMLElement>

rightIcon

説明

Icon to be displayed to the right of the tag.

タイプ

ReactElement<any, string | JSXElementConstructor<any>>

size

説明

The size of the Tag.

タイプ

"sm" | "md" | "lg"

デフォルト

md

variant

説明

The variant of the Tag.

タイプ

"solid" | "subtle" | "outline"

デフォルト

subtle

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

データディスプレイBadge