Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

Avatar

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

ソース@yamada-ui/avatar

Props

AvatarProps

alt

説明

The HTMLImageElement property alt.

タイプ

string

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"

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

AvatarGroupProps

max

説明

The maximum number of visible avatars.

タイプ

number

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" | "link" | BackgroundColor | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | ... 320 more ... | "link.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.

タイプ

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

デフォルト

'bottom-end'

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

Fontawesome IconIndicator