Seed Bible extension API (v1.18.0) / seed-bible/components / Skeleton
Function: Skeleton()
function Skeleton(props: {
className?: string;
height?: string;
radius?: string;
shape?: SkeletonShape;
width?: string;
}): Element;A single shimmering placeholder block. Purely decorative — it carries aria-hidden so screen readers announce only the surrounding SkeletonContainer's status message, not each block.
Sizes are plain CSS length strings applied inline. Author them in rem (or % for fluid widths), never px, so the block scales with the app's "UI Size" setting like the rest of the chrome (see app/styles/base.css — 1rem tracks --sb-ui-scale). The shape prop only supplies sensible default height/radius; any explicit width/height/radius wins.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | { className?: string; height?: string; radius?: string; shape?: SkeletonShape; width?: string; } | - |
props.className? | string | Extra classes for layout (margins, flex, etc.). |
props.height? | string | CSS height, e.g. "3rem". |
props.radius? | string | Border-radius override, e.g. "0.625rem". |
props.shape? | SkeletonShape | Picks default height/radius. Defaults to "block". |
props.width? | string | CSS width, e.g. "8.5rem" or "40%". |
Returns
Element