个人资料图片、用户名称首字母或备用图标。
¥API Reference
此组件继承了 头像基础组件 的属性。
¥This component inherits props from the Avatar primitive.
¥Examples
¥Size
使用 size
属性控制头像的大小。
¥Use the size
prop to control the size of the avatar.
¥Variant
使用 variant
属性控制头像的视觉样式。
¥Use the variant
prop to control the visual style of the avatar.
¥Color
使用 color
属性指定特定的 color。
¥Use the color
prop to assign a specific color.
¥High-contrast
使用 highContrast
属性增加与背景的颜色对比度。
¥Use the highContrast
prop to increase color contrast with the background.
¥Radius
使用 radius
属性指定特定的圆角值。
¥Use the radius
prop to assign a specific radius value.
¥Fallback
使用 fallback
属性修改渲染的 fallback 元素。
¥Use the fallback
prop to modify the rendered fallback element.