生态产品多个设计器现已发布候选版本

查看生态总览
Skip to content

AvatarGroup ​

Data display component. This page is the API reference, generated from the source code. Usage guidance and live examples are on the Chinese page.

Anatomy ​

Parts in bold are required.

data-scope="avatar-group": root · overflow-item

API reference ​

Descriptions of individual props, events and slots are written in Chinese and appear on the Chinese page.

Artifacts ​

LayerValue
Custom element<xh-avatar-group>
Vue componentsXhAvatarGroupOverflowItem XhAvatarGroupRoot
State machineNone: connect computes attributes from props directly
Skin@xihan-ui/styles/avatar-group.css

Props ​

PropTypeRequired
maxnumber
sizeSize

connect API ​

getXxxProps() returns the host attributes of the matching part.

MemberType
getRootProps() => T['element']
getOverflowItemProps() => T['element']

Accessibility ​

Keyboard ​

Specification: W3C APG. Each row is a stable behavior id that the conformance tests cover; the conditions and effects are described on the Chinese page.

No keyboard interaction: the component takes no focus, or focus behavior comes entirely from native elements.

Style reference ​

Skin ​

@xihan-ui/styles/avatar-group.css is written against [data-scope="avatar-group"][data-part="root"] part selectors; the published build uses the mount class .xh-scope-avatar-group in place of data-scope (same specificity) and sits in the xihan.components layer. Put overrides in xihan.overrides; the part selectors work as usual.

CSS variables ​

The public override slots, generated from what the standalone skin actually consumes.

VariablePartCSS propertyStateDefault from
--xh-avatar-group-font-sizeoverflow-item
root
--xh-avatar-font-size
font-size
default--xh-_avatar-group-half-size
--xh-avatar-group-font-weightoverflow-itemfont-weightdefault--xh-font-weight-medium
--xh-avatar-group-overflow-item-bgoverflow-itembackgrounddefault--xh-bg-subtle-active-opaque
--xh-avatar-group-overflow-item-fgoverflow-itemcolordefault--xh-fg-default
--xh-avatar-group-overlaprootmargin-inline-startdefault--xh-space-2
--xh-avatar-group-radiusoverflow-itemborder-radiusdefault--xh-shape-circle
--xh-avatar-group-ringrootbox-shadowdefault--xh-bg-surface
--xh-avatar-group-sizeoverflow-item
root
--xh-avatar-font-size
--xh-avatar-size
block-size
font-size
inline-size
default
size=lg
size=sm
--xh-control-h-lg
--xh-control-h-md
--xh-control-h-sm

Released under The MIT License