Skeleton
The shape of what is coming, in place of a spinner.
import { Skeleton, SkeletonText, SkeletonGroup } from "@forgeron/ui";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
| Prop | Type | Default | Description |
|---|---|---|---|
width / height | number | string | — | Skeleton: its box. |
lines | number | — | SkeletonText: how many lines. |
label | string | — | SkeletonGroup: the wait, said once. |
className | string | — | Extra classes. |