Placeholders

Automatically included in all.css and elements.css. This stylesheet provides "skeleton" placeholders that can display while content loads.

ts
import '@brainandbones/skeleton/styles/elements/placeholders.css';

Examples

Usage

html
<div class="placeholder" />

Circular

Apply the .placeholder-circle class and set a width to define the diameter.

html
<div class="placeholder-circle w-16" />

Animated

Apply the .animate-pulse utility class provided by Tailwind.

html
<div class="placeholder animate-pulse" />

Global Styles

Use your global stylesheet to update all instances of this element.

css
.placeholder { @apply rounded-none; }

Classes

Class Description
placeholderApplies the default placeholder style.
placeholder-circleApplies the circular placeholder style.