Skip to content

Avatar stack

Avatar stack displays two or more avatars in an inline stack.

Work in progressWe are currently transferring the Rails documentation for AvatarStack from a different site to this page. To view the original documentation, please visit the Primer ViewComponents documentation for AvatarStack.
v0.1.5BetaNot reviewed for accessibility

Description

Use AvatarStack to stack multiple avatars together.

Arguments

NameDefaultDescription
tag

:div

Symbol

One of :div or :span.

align

:left

Symbol

One of :left or :right.

tooltipped

false

Boolean

Whether to add a tooltip to the stack or not.

body_arguments

{}

Hash

Parameters to add to the Body. If tooltipped is set, has the same arguments as Primer::Tooltip. The default tag is :div but can be changed using tag: to one of :div or :span.

system_arguments

N/A

Hash

Examples

View in Lookbook

Slots

avatars

Required list of stacked avatars.

NameDefaultDescription
kwargs

N/A

Hash

The same arguments as Avatar.