Atoms / Skeleton

Skeleton

The shape of what is coming, in place of a spinner.

import { Skeleton, SkeletonText, SkeletonGroup } from "@forgeron/ui";
/01 → Card
Loading the contact
import { Skeleton, SkeletonGroup, SkeletonText } from "@forgeron/ui";

export default function Card() {
  return (
    <div style={{ width: 320 }}>
      <SkeletonGroup label="Loading the contact">
        <div style={{ display: "flex", gap: 12, alignItems: "center" }}>
          <Skeleton width={40} height={40} />
          <Skeleton width="50%" />
        </div>
        <SkeletonText lines={3} />
      </SkeletonGroup>
    </div>
  );
}
API → Props
PropTypeDefaultDescription
width / heightnumber | string—Skeleton: its box.
linesnumber—SkeletonText: how many lines.
labelstring—SkeletonGroup: the wait, said once.
classNamestring—Extra classes.