Feedback

Skeleton.

A thoughtful pause before the content.

Live preview

Live preview
tsx
import { Skeleton } from "luminescent";
import "luminescent/style.css";


export function Example() {
  return (
    <div role="status" aria-label="Loading profile">
      <Skeleton variant="circular" />
      <Skeleton width="65%" />
      <Skeleton variant="rectangular" height={120} />
    </div>
  );
}

Installation

bash
npm install luminescent

Import luminescent/style.css once at your application root. The example above uses the same package implementation as Storybook.

Variants and states

Use the preview controls to explore the supported variants, sizes, disabled/loading states and reduced motion. Controls appear only where the component exposes the corresponding prop. Theme and glow apply to every component.

API reference

Generated from the source TypeScript interfaces. Native attributes, className, style, aria-* and data-* also pass through to the documented element. Import SkeletonProps from the package for the full inherited contract.

PropTypeDetails
variant'text' | 'rectangular' | 'circular'Optional unless marked required.
widthReact.CSSProperties['width']Optional unless marked required.
heightReact.CSSProperties['height']Optional unless marked required.
animation'shimmer' | 'pulse' | 'none'Optional unless marked required.
glowColorGlowColorOptional unless marked required.

Accessibility and keyboard

Decorative aria-hidden placeholders. Name the loading region outside the skeleton. Shimmer and pulse stop for reduced motion.

Keep labels meaningful and test application-level contrast, focus order and screen-reader output. See the accessibility guide for composition requirements.

Theme customization

tsx
import { LuminescentProvider, Skeleton } from "luminescent";
import "luminescent/style.css";


export function Example() {
  return (
    <LuminescentProvider theme="light" accent="violet" glow="subtle">
      <div role="status" aria-label="Loading profile">
        <Skeleton variant="circular" />
        <Skeleton width="65%" />
        <Skeleton variant="rectangular" height={120} />
      </div>
    </LuminescentProvider>
  );
}

Switch between light and dark in the preview, or open the playground for a larger workspace. Custom CSS variables can override spacing, color, typography and effects.

Related components