跳到主要内容
版本:v7

ion-avatar

shadow

头像(Avatars)是通常包装图像或图标的圆形组件。它们可用于表示一个人或对象。

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

基本用法

芯片(Chip)头像

项目(Item)头像

主题定制

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.