Skeleton
Grey shapes that pulse where text, pictures or rows will appear, so the layout does not jump when they arrive. lines makes a paragraph and circle an avatar.
ui.skeleton · Category: Feedback · Full reference →


pz.container(pz.row([ ui.skeleton(height=40, circle=True), pz.column([ui.skeleton(width=160, height=14), ui.skeleton(lines=2, height=10)], spacing=10, width="fill"),], spacing=12), width=360)When to use
Section titled “When to use”- While a list, a profile or a card is loading.
- For a short wait with no known shape, a Spinner is enough.
import pyzed as pzfrom pyzed import ui
pz.container(pz.row([ ui.skeleton(height=40, circle=True), pz.column([ui.skeleton(width=160, height=14), ui.skeleton(lines=2, height=10)], spacing=10, width="fill"),], spacing=12), width=360)Variants
Section titled “Variants”Options
Section titled “Options”

Code
pz.container(ui.skeleton(height=14), width=320)

lines=3Code
pz.container(ui.skeleton(lines=3, height=10), width=320)

circle=TrueCode
ui.skeleton(height=48, circle=True)

Code
pz.container(pz.column([ui.skeleton(height=120, radius=8), ui.skeleton(width=180, height=14), ui.skeleton(lines=2, height=10)], spacing=10), width=280)States and events
Section titled “States and events”

animated=FalseCode
pz.container(ui.skeleton(lines=2, animated=False), width=320)Events
Section titled “Events”Skeleton 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.skeleton
Section titled “ui.skeleton”skeleton( width='fill', height=12, *, lines=1, circle=False, radius=None, spacing=8, animated=True, theme=None,)A grey placeholder that pulses where content is still loading. lines makes a paragraph and circle an avatar.
| Property | Default | Description |
|---|---|---|
width |
"fill" |
Width: pixels, "fill", "shrink" or "fill:N" (proportion). |
height |
12 |
Height of each bar (the diameter with circle). |
lines |
1 |
Stacks several bars, the last one shorter. |
circle |
False |
A round placeholder of height. |
radius |
None |
Corner radius: a number or (top_left, top_right, bottom_right, bottom_left). |
spacing |
8 |
Space between children, in pixels. |
animated |
True |
Pulses (it stays still when the system asks for reduced motion). |
theme |
None |
Theme to use instead of the current one (pyzed.theme.current()). |
Related
Section titled “Related”SpinnerA spinning arc for loading states.
ProgressA thin progress bar in a semantic color.
Empty stateA centered placeholder for empty lists and searches.