Data display
Skeleton
Gray placeholders in the shape of content that is still loading: lines of text, boxes, avatars. They hold the layout while data arrives, so the page does not jump, and screen readers read them as a single "Loading...".
Nothing to show
A round placeholder next to two lines of different widths, and a large box under them, all light gray with a light band sweeping across. Screen readers read a single "Loading..." for the whole group instead of the shapes.
While Livewire loads #
$results and search belong to the Livewire component: search is the action that fills $results, here an array of strings. Three pulsing lines take the place of the results while it runs.
Ana Souza
Bruno Reis
Caio Lima
Davi Luz
Nothing to show
Lazy components #
The placeholder a lazy Livewire component shows until it loads.
Nothing to show
Shapes #
line, circle and box take a size; the bare tk:skeleton is sized with classes.
Nothing to show
Animations #
animate on the group is shimmer (a band sweeping across) or pulse (fading in and out), inherited by the shapes inside.
Nothing to show
Group size #
size on the group sets the gap between placeholders.
Nothing to show
Customization #
Classes go to the placeholder; width, height and rounding classes replace the defaults.
Nothing to show
Reference
tk:skeleton.group
├── tk:skeleton.line
├── tk:skeleton.circle
├── tk:skeleton.box
└── tk:skeleton
tk:skeleton.group
| Prop | Type | Default | Description |
|---|---|---|---|
animate |
string | null |
shimmer (a light band sweeping across) or pulse (fading in and out). Inherited by the placeholders inside. Without it they are still. |
size |
string | md |
Sets the gap between the placeholders. |
tk:skeleton.line, tk:skeleton.circle and tk:skeleton.box
| Prop | Type | Default | Description |
|---|---|---|---|
size |
string | md |
A line is a thin bar standing for a line of text of that size (0.75rem tall at md); a circle and a box, the width and height of an avatar of that size. |
tk:skeleton
The bare placeholder they are built on: full width, rounded, gray. Takes animate, inherited from the group; set its size with classes.
Slots
| Tag | Slot | Description |
|---|---|---|
tk:skeleton.group |
default | The placeholders, laid out as you need. |
tk:skeleton* |
default | Content inside the placeholder, rarely needed. |
Customization
Classes and attributes go to the placeholder element; width, height and rounding classes on the tag replace the defaults.
Nothing to show
Accessibility
The group is a role="status" region with a visually hidden "Loading..." (translated), and every placeholder is aria-hidden, so screen readers hear one message instead of empty shapes. The animations stop when the user prefers reduced motion.