ion-avatar
头像(Avatars)是通常包装图像或图标的圆形组件。它们可用于表示一个人或对象。
头像可以单独使用,也可以放在任何元素内部。如果放置在 ion-chip 或 ion-item 内,头像将调整大小以适应父组件。若要将头像定位在项目的左侧或右侧,请将插槽(slot)分别设置为 start 或 end。
基本用法
芯片(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 自定义属性
| Name | Description |
|---|---|
--border-radius | Border radius of the avatar and inner image |
插槽
No slots available for this component.