Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

Indicator

Indicatorは、アバターなどの要素の隅に表示するコンポーネントです。

ソース@yamada-ui/indicator

Props

IndicatorProps

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

containerProps

説明

Props for indicator wrapper element.

タイプ

Omit<HTMLUIProps<"div">, "children">

inline

説明

If true, set the indicator as an inline element.

タイプ

UIValue<boolean>

デフォルト

false

isDisabled

説明

If true, the indicator will be disabled.

タイプ

boolean

デフォルト

false

label

説明

The indicator label to use.

タイプ

type ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

offset

説明

Changes position offset, usually used when element has border-radius.

タイプ

UIValue<number>

デフォルト

0

overflowCount

説明

If label is of type number, the maximum number displayed.

タイプ

number

デフォルト

99

ping

説明

If true, make an element scale and fade like a radar ping or ripple of water.

タイプ

boolean

デフォルト

false

pingColor

説明

It is used for the color of the ping animation.

タイプ

UIValue<"border" | "link" | BackgroundColor | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | ... 320 more ... | "link.950">

デフォルト

var(--ui-ping)

pingCount

説明

It is used for the count of the ping animation.

タイプ

AnimationIterationCount

デフォルト

infinite

pingDuration

説明

It is used for the duration of the ping animation.

タイプ

AnimationDirection

デフォルト

1.4s

pingScale

説明

It is used for the scale of the ping animation.

タイプ

number

デフォルト

1.8

placement

説明

The placement of the indicator.

タイプ

UIValue<| "bottom" | "left" | "right" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right">

デフォルト

'top-right'

showZero

説明

If true, display 0.

タイプ

boolean

デフォルト

true

size

説明

The size of the Indicator.

タイプ

"sm" | "md" | "lg"

デフォルト

md

variant

説明

The variant of the Indicator.

タイプ

"solid" | "subtle"

デフォルト

solid

withBorder

説明

If true, display the border of the indicator.

タイプ

boolean

デフォルト

false

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

Avatarトランジション