Skeleton

Tailwind CSS and Alpine JS Skeleton

Skeletons are a great way to indicate that a process is in progress. They can be used to indicate loading, uploading, submitting and more.

Default skeleton

A simple skeleton representing a paragraph.

loading
HTML
<div class="">
	<div class="" aria-hidden="true"></div>
	<div class="" aria-hidden="true"></div>
	<div class="" aria-hidden="true"></div>
	<div class="" aria-hidden="true"></div>
	<span class="sr-only">loading</span>
</div>

Image skeleton

A skeleton representing an image.

loading
HTML
<div>
	<div class="" aria-hidden="true">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="">
			<path fill-rule="evenodd" d="M1 5.25A2.25 2.25 0 0 1 3.25 3h13.5A2.25 2.25 0 0 1 19 5.25v9.5A2.25 2.25 0 0 1 16.75 17H3.25A2.25 2.25 0 0 1 1 14.75v-9.5Zm1.5 5.81v3.69c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-2.69l-2.22-2.219a.75.75 0 0 0-1.06 0l-1.91 1.909.47.47a.75.75 0 1 1-1.06 1.06L6.53 8.091a.75.75 0 0 0-1.06 0l-2.97 2.97ZM12 7a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" clip-rule="evenodd" />
		</svg>
	</div>
	<span class="">loading</span>
</div>

Profile skeleton

A skeleton representing a profile.

loading
HTML
<div class="">
	<div class="" aria-hidden="true"></div>
	<div class="">
		<div class="" aria-hidden="true"></div>
		<div class="" aria-hidden="true"></div>
	</div>
	<span class="">loading</span>
</div>