Skeleton
Placeholder shape while content loads.
Import
Section titled “Import”import { Skeleton } from "@pelagornis/page/components";Example
Section titled “Example”The preview above renders this file. Copy it into src/components/ to start from it.
import { Skeleton, Stack } from "@pelagornis/page/components";
export default function SkeletonDemo() { return ( <Stack direction="row" gap="sizeMedium" align="center" className="w-full max-w-sm"> <Skeleton width={48} height={48} shape="circle" /> <Stack gap="sizeXSmall" className="flex-1"> <Skeleton width="60%" height={16} /> <Skeleton width="100%" height={12} /> </Stack> </Stack> );}Use in MDX
Section titled “Use in MDX”Skeleton can be written straight in an .mdx page. Import it below the frontmatter. It renders on the server, so no client directive is needed.
---title: Example---
import { Skeleton } from "@pelagornis/page/components";
<Skeleton width="60%" height={16} />Use in Markdoc
Section titled “Use in Markdoc”pageMarkdoc() registers a skeleton tag for this component. Add the preset once in markdoc.config.mjs (see Use in Markdoc), then write the tag in any .mdoc page.
{% skeleton width="60%" height=16 /%}Attributes use the same names and values as the React props.
Anatomy
Section titled “Anatomy”Parts of the component and the data-refineui role each one renders.
| Part | Role |
|---|---|
root | skeleton |
Reference
Section titled “Reference”- RefineUI · Skeleton for design guidance and token detail.
- Use in MDX and Use in Markdoc for the general rules.