For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/v0.1.0/en/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/v0.1.0/en/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/v0.1.0/en/components/skeleton.md.
  • English
  • v0.1.0
  • Skeleton

    Live previewHTML · CSS · JavaScript

    Usage

    Include CSS

    Import Tailwind and one full A3S UI style bundle.

    @import "tailwindcss";
    @import "@a3s-lab/ui/a3s.css";

    Or import only the base CSS, Skeleton component CSS, and one style pack.

    @import "tailwindcss";
    @import "@a3s-lab/ui/base.css";
    @import "@a3s-lab/ui/components/skeleton.css";
    @import "@a3s-lab/ui/styles/a3s.css";

    Using CDN or bundler imports? See the Installation page.

    Add your skeleton HTML

    Add class="skeleton" with sizing utilities to create loading placeholders.

    <div class="skeleton h-4 w-[150px]"></div>

    Examples

    Avatar

    Live previewHTML · CSS · JavaScript

    Card

    Live previewHTML · CSS · JavaScript

    Text

    Live previewHTML · CSS · JavaScript

    Form

    Live previewHTML · CSS · JavaScript

    Table

    Live previewHTML · CSS · JavaScript

    RTL

    Skeleton blocks are direction-neutral. Use logical layout utilities around them when spacing depends on direction.

    Live previewHTML · CSS · JavaScript