Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | import { Skeleton } from "~components/skeleton";
import { SkeletonAvatar } from "~components/skeleton-avatar";
import { SkeletonDateInput } from "~components/skeleton-date-input";
import { SkeletonInput } from "~components/skeleton-input";
import { SkeletonNumberInput } from "~components/skeleton-number-input";
import { SkeletonSwitch } from "~components/skeleton-switch";
import { Group, Section } from "./showcase-section";
const SkeletonExample = () => (
<Section title="Skeleton">
<Skeleton className="h-6 w-24 rounded-md" />
</Section>
);
const SkeletonAvatarShowcase = () => (
<Section title="SkeletonAvatar">
<SkeletonAvatar />
</Section>
);
const SkeletonDateInputShowcase = () => (
<Section title="SkeletonDateInput">
<SkeletonDateInput label="Loading date" />
</Section>
);
const SkeletonInputShowcase = () => (
<Section title="SkeletonInput">
<SkeletonInput label="Loading input" />
</Section>
);
const SkeletonNumberInputShowcase = () => (
<Section title="SkeletonNumberInput">
<SkeletonNumberInput label="Loading number" />
</Section>
);
const SkeletonSwitchShowcase = () => (
<Section title="SkeletonSwitch">
<SkeletonSwitch />
</Section>
);
export const SkeletonShowcase = () => (
<Group title="Skeleton">
<SkeletonExample />
<SkeletonAvatarShowcase />
<SkeletonDateInputShowcase />
<SkeletonInputShowcase />
<SkeletonNumberInputShowcase />
<SkeletonSwitchShowcase />
</Group>
);
|