Avatars can have different radius factors. The following example shows avatars using the rounded
prop. Avatars can also be displayed as groups, using the <BaseAvatarGroup> component.
نمایش کدمخفی کردن کد
Avatars can have different radius factors. The following example shows avatars using the lg
radius factor. Use the rounded
prop to change the radius factor of the avatar.
نمایش کدمخفی کردن کد
Avatars can have different radius factors. The following example shows avatars using the md
radius factor. Use the rounded
prop to change the radius factor of the avatar.
نمایش کدمخفی کردن کد
Avatars can have different radius factors. The following example shows avatars using the sm
radius factor. Use the rounded
prop to change the radius factor of the avatar.
نمایش کدمخفی کردن کد
Avatars can have different radius factors. The following example shows avatars using the none
radius factor. Use the rounded
prop to change the radius factor of the avatar.
نمایش کدمخفی کردن کد
Avatars can have status indicators. Indicators positioning vary depending on the shape of the avatar. Use the dot
prop to display a status indicator.
نمایش کدمخفی کردن کد
Avatars can have status indicators. Indicators positioning vary depending on the shape of the avatar. Use the dot
prop to display a status indicator.
نمایش کدمخفی کردن کد
Avatars can have image badges. Badges can be used to display a skill, a flag, an icon or any relevant information. Use the src-badge
prop to display a badge.
نمایش کدمخفی کردن کد
Avatars can have image badges. Badges can be used to display a skill, a flag, an icon or any relevant information. Use the src-badge
prop to display a badge.
نمایش کدمخفی کردن کد
Sometimes, you need to display a placeholder avatar. When an image is not provided, the component defaults to the fake
mode, using color and text instead of an image.
نمایش کدمخفی کردن کد
Sometimes, you need to display a placeholder avatar. When an image is not provided, the component defaults to the fake
mode, using color and text instead of an image.
نمایش کدمخفی کردن کد
Fake avatars withstand the same props as regular avatars. You can also use badges and indicators on fake avatars using the same properties.
نمایش کدمخفی کردن کد
Fake avatars withstand the same props as regular avatars. You can also use badges and indicators on fake avatars using the same properties.
نمایش کدمخفی کردن کد
Fake avatars background and text color can be customized using Tailwind CSS bg-*
and text-*
utilities. Alternatively, you can use the Tairo getRandomColor()
utility function to generate a random color.
نمایش کدمخفی کردن کد
Fake avatars background and text color can be customized using Tailwind CSS bg-*
and text-*
utilities. Alternatively, you can use the tairo getRandomColor()
utility function to generate a random color.
نمایش کدمخفی کردن کد
Avatars can be displayed using SVG masks, bringing fancier shapes to your UI. Keep in mind that the mask
prop is only available for the none
radius factor.
نمایش کدمخفی کردن کد
badge-src
نمایش مثالمخفی کردن مثال
classes
نمایش مثالمخفی کردن مثال
dot
نمایش مثالمخفی کردن مثال
mask
نمایش مثالمخفی کردن مثال
ring
نمایش مثالمخفی کردن مثال
src
نمایش مثالمخفی کردن مثال
src-dark
نمایش مثالمخفی کردن مثال
text
نمایش مثالمخفی کردن مثال
color
@since
3.0.0
نمایش مثالمخفی کردن مثال
rounded
نمایش مثالمخفی کردن مثال
size
نمایش مثالمخفی کردن مثال
color
نمایش مثالمخفی کردن مثال
rounded
نمایش مثالمخفی کردن مثال
size