Mixins / foldkit-mixins-ui

AvatarGroupView

interface · packages/mixins-ui/src/avatar.ts:215

interface AvatarGroupView<Message = never> {
  readonly people: ReadonlyArray<AvatarPerson>
  readonly max?: number | undefined
  readonly label?: string | undefined
  readonly words?: Partial<AvatarWords> | undefined
  readonly rest?: ((count: number) => Html) | undefined
  readonly wrap?: ((avatar: Html, person: AvatarPerson) => Html) | undefined
  readonly style?: NamedStyle<typeof AvatarGroupSlots> | undefined
  readonly avatarStyle?: NamedStyle<typeof AvatarSlots> | undefined
  readonly mixins?: MixinList<Message> | undefined
}

Avatars overlapping in a row, at most max of them and a +N for the rest.

Members

AvatarGroupView.people

property · packages/mixins-ui/src/avatar.ts:216

readonly people: ReadonlyArray<AvatarPerson>

AvatarGroupView.max

property · packages/mixins-ui/src/avatar.ts:218

readonly max?: number | undefined

How many to draw before the +N; every one when omitted.

AvatarGroupView.label

property · packages/mixins-ui/src/avatar.ts:220

readonly label?: string | undefined

The group's accessible name, such as "Editors".

AvatarGroupView.words

property · packages/mixins-ui/src/avatar.ts:222

readonly words?: Partial<AvatarWords> | undefined

The statuses and the +N's reading (words.more), for every avatar in the group.

AvatarGroupView.rest

property · packages/mixins-ui/src/avatar.ts:224

readonly rest?: ((count: number) => Html) | undefined

What the +N disc holds in place of the text (an icon, say); count is how many are left out.

AvatarGroupView.wrap

property · packages/mixins-ui/src/avatar.ts:226

readonly wrap?: ((avatar: Html, person: AvatarPerson) => Html) | undefined

Draws around each avatar, such as a Tooltip or a link; the +N is not wrapped.

AvatarGroupView.style

property · packages/mixins-ui/src/avatar.ts:228

readonly style?: NamedStyle<typeof AvatarGroupSlots> | undefined

A style of AvatarGroupSlots, for the overlap.

AvatarGroupView.avatarStyle

property · packages/mixins-ui/src/avatar.ts:230

readonly avatarStyle?: NamedStyle<typeof AvatarSlots> | undefined

A style of AvatarSlots for every avatar in it, the +N included.

AvatarGroupView.mixins

property · packages/mixins-ui/src/avatar.ts:232

readonly mixins?: MixinList<Message> | undefined

Mixins beside the style.