For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/zh/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/zh/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/zh/components/avatar.md.
v0.0.57
  • 简体中文
  • Avatar

    数据展示@rockshin/tao-ui

    使用图片、文字或图标标识用户与实体。

    组件采用 tao-ui 原生实现,公共 API 对齐 Ant Design 6.7.0。外观、主题 token 与 Semantic DOM 定制遵循 tao-ui,主题通过 TaoProvider 配置。

    尺寸继承 TaoProvider;方形头像使用 tao-ui 圆角,分组溢出使用 tao-ui Popover。

    何时使用

    使用简短姓名缩写和有意义的图片替代文本;分组可展示团队成员。

    代码演示

    尺寸与形状

    AABCDEF
    TSX

    图片与图标

    Abstract profileRS
    TSX

    文字自动缩放

    A
    TSX

    分组与溢出

    390 × 640
    TSX

    响应式尺寸

    390 × 640
    TSX

    局部主题与语义部件

    ALBT
    TSX

    API

    Avatar

    属性说明类型默认值