Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.7.2

Avatar

Avatarは、ユーザーを表すプロフィール写真やイニシャルのアイコンを表示するコンポーネントです。

ソース@yamada-ui/avatar

Props

AvatarProps

alt

説明

The HTMLImageElement property alt.

タイプ

string

colorScheme

説明

The visual color appearance of the component.

タイプ

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

crossOrigin

説明

The key used to set the crossOrigin on the HTMLImageElement into which the image will be loaded. This tells the browser to request cross-origin access when trying to download the image data.

タイプ

"" | "anonymous" | "use-credentials"

format

説明

Function to get the initials to display.

タイプ

(name: string) => string

icon

説明

The avatar icon to use.

タイプ

ReactElement<any, string | JSXElementConstructor<any>>

ignoreFallback

説明

If true, opt out of the avatar's fallback logic and renders the img at all times.

タイプ

boolean

デフォルト

false

loading

説明

Defines loading strategy.

タイプ

"eager" | "lazy"

name

説明

The name of the person in the avatar. - If src has loaded, the name will be used as the alt attribute of the img - If src is not loaded, the name will be used to create the initials

タイプ

string

referrerPolicy

説明

Defining which referrer is sent when fetching the resource.

タイプ

HTMLAttributeReferrerPolicy

size

説明

The size of the Avatar.

タイプ

"2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"

デフォルト

"md"

src

説明

The image url of the avatar.

タイプ

string

srcSet

説明

List of sources to use for different screen resolutions.

タイプ

string

variant

説明

The variant of the Avatar.

タイプ

string

AvatarBadgeProps

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" | BackgroundColor | ({} & string) | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | ... 320 more ... | "yellow.950">

デフォルト

'["blackAlpha.400", "whiteAlpha.500"]'

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 badge.

タイプ

"bottom-end" | "bottom-start" | "top-end" | "top-start"

デフォルト

'bottom-end'

AvatarGroupProps

max

説明

The maximum number of visible avatars.

タイプ

number

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

Fontawesome IconIndicator