Command Palette

Search for a command to run...

Skeleton

Use to show a placeholder while content is loading.

Usage

import { Skeleton } from "@smartacteam/ambient-web/skeleton";
<Skeleton />

Lines of text

SkeletonText stands in for one line of text. Its box is one line tall and its bar one em tall, centered in the box, both read from the surrounding font size and line height, so a row keeps the height its text will have. className sets the width.

import { SkeletonText } from "@smartacteam/ambient-web/skeleton";
<dd className="text-sm">
  {loading ? <SkeletonText className="w-32" /> : customer.email}
</dd>

Shape a screen's skeleton like the finished screen: real headings and labels, with bars only where values go. The Loading pattern covers how.

Examples

Avatar

Card

Form

Table

Text