Skeleton

Holds the place of text that is still loading, as bars a single light passes over.

Configurations

Supported configurations for this component.

Configurations

2 examples
Prose
sm
md
Rows
sm
md

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/••••••••••••

Light and dark both come with the install and follow the dark class on <html>, the shadcn dark mode setup (next-themes with attribute="class").

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

PropTypeDefaultDescription
widthsstring[]['100%','92%','64%']Bar widths, top to bottom. A ragged last line reads as prose; equal bars read as a table.
size'sm'|'md''md'Bar height: 8px under 12px type, 12px under 14px.
classNamestring-Additional CSS classes applied to the root element.
styleReact.CSSProperties-Inline styles applied to the root element.

More Andromeda Pro components