<placeholder>
A shimmering gray placeholder in the shape of content that is still loading: a box, a circle or lines.
Aliases
Reset to canonicalThis tag has more than one name. Every spelling is the same tag, so write whichever feels natural. Pick one and every example on this page uses it.
<column style="w-full gap-16">
<row style="gap-12 items-center">
<placeholder type="circle"
width="48"
height="48"/>
<column flex="1"
style="gap-8">
<placeholder width="160"
height="14"/>
<placeholder width="100"
height="12"/>
</column>
</row>
<placeholder height="160"/>
<placeholder type="text"
lines="3"/>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
color |
Placeholder color color |
gray-300 |
height |
Height in pixels number |
16 |
lines |
Number of text lines (type=text) number |
1 |
type |
Shape type rect, circle, text |
rect |
width |
Width in pixels number |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.