Loading placeholder that mirrors the final layout. The size comes from class.
<.skeleton class="h-3 w-40" animation="wave" />
<.skeleton shape="circle" style="width:40px;height:40px" />
<.skeleton_group label="Loading orders">
<.skeleton style="width:60%" />
</.skeleton_group>animation={nil} emits no animation class ("none" emits a-none); tag="span" draws a span (inside a flex column).
shape emits no class by default (the base block already has the small radius); an explicit
"rounded" adds sh-rounded. The wave and the pulse stop for prefers-reduced-motion.
Summary
Functions
Attributes
animation(:string) - Defaults to"wave". Must be one ofnil,"wave","pulse", or"none".variant(:string) - Defaults to"canvas". Must be one of"canvas", or"lineone".shape(:string) - Defaults tonil.Must be one ofnil,"rounded","pill","circle","square", or"lg".tag(:string) - The element drawn. Defaults to"div". Must be one of"div", or"span".class(:any) - Defaults tonil.- Global attributes are accepted.
Attributes
label(:string) - Read by screen readers; not drawn. Defaults to"Loading…".class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)