GitHubGitHub
← All components
Feedback / component

Skeleton

Reduced-motion-aware placeholders for lines, blocks, circles, and table rows.

LineBlockCircleTable rows
<Skeleton variant="table-row" rows={5} />

Installation

pnpm add @chanrg/4ui

Import the stylesheet once, at the root of your app:

import '@chanrg/4ui/styles.css';

Usage

import { Skeleton } from '@chanrg/4ui';<Skeleton variant="table-row" rows={5} />

API reference

Props

PropTypeDefaultDescription
variantline | block | circle | table-rowlinePlaceholder geometry.
rowsnumber4Rows in table mode.

CSS variables

VariableDescription
--4ui-surfacePrimary component surface.
--4ui-textPrimary foreground color.
--4ui-borderDefault control and panel border.

Accessibility

  • Decorative placeholders are hidden from assistive technology.

Dependencies

No runtime component dependencies.