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