Facepile
Overlapping avatars of collaborators, as in the title bar of a collaborative editor. People beyond max_shown are grouped into +N.
ui.facepile · Category: Data · Full reference →


pz.column([ ui.facepile(["Ana", "Luis", "Kev", "Marta"]), ui.facepile(["Ana", "Luis", "Kev", "Marta", "Sam", "Jo", "Lee", "Max"], size=28, max_shown=4),], spacing=16, align="center")When to use
Section titled “When to use”- To show who is in a project, a call or a document without listing names.
import pyzed as pzfrom pyzed import ui
pz.column([ ui.facepile(["Ana", "Luis", "Kev", "Marta"]), ui.facepile(["Ana", "Luis", "Kev", "Marta", "Sam", "Jo", "Lee", "Max"], size=28, max_shown=4),], spacing=16, align="center")Variants
Section titled “Variants”Options
Section titled “Options”

Code
ui.facepile(["Ana", "Luis"])

Code
ui.facepile(["Ana", "Luis", "Kev", "Marta", "Sam"])

max_shown=3Code
ui.facepile(["Ana", "Luis", "Kev", "Marta", "Sam", "Jo", "Lee"], max_shown=3)

size=32, overlap=10Code
ui.facepile(["Ana", "Luis", "Kev", "Marta"], size=32, overlap=10)Events
Section titled “Events”Facepile has no events of its own: it shows what you give it. Like every widget it also has the 18 common events (click, double_click, right_click, mouse_enter, drag, key_down, resize…), attached with .on(...): see Events and Events of every component.
Properties and API
Section titled “Properties and API”ui.facepile
Section titled “ui.facepile”facepile(people, *, size=22, overlap=6, max_shown=5, theme=None)Overlapping collaborator avatars, as in the title bar of a collaborative editor. Those beyond max_shown are grouped into +N.
| Property | Default | Description |
|---|---|---|
people |
required | Initials or names. |
size |
22 |
Size. |
overlap |
6 |
Overlap in pixels. |
max_shown |
5 |
How many to show. |
theme |
None |
Theme to use instead of the current one (pyzed.theme.current()). |