跳到主要内容
版本:v8

头像组件

shadow

头像(Avatars)是通常包裹图像或图标的圆形组件,可用于表示人物或对象。

头像可以单独使用,也可以置于任何元素内部。如果放置在 ion-chipion-item 内,头像将自动调整大小以适应父组件。要将头像定位在项目的左侧或右侧,请分别将 slot 设置为 startend

基本用法

芯片头像

项目头像

主题定制

CSS 自定义属性

属性

No properties available for this component.

事件

No events available for this component.

方法

No public methods available for this component.

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS 自定义属性

NameDescription
--border-radiusBorder radius of the avatar and inner image

插槽

No slots available for this component.