Uai

feedbackskeleton-group.tsx

Color theme

component · 19/108

Skeleton Group

Placeholders that match common page structures without layout shift.

Install

Install manuallyView source on GitHub

Anatomy

  • SkeletonGroup
  • SkeletonGroupCard
  • SkeletonGroupBlock
  • SkeletonGroupRow
  • SkeletonGroupCircle
  • SkeletonGroupStack
  • SkeletonGroupLine

Accessibility3 checks

  • The root is a polite role="status" with aria-busy and a visually hidden label; placeholder shapes are hidden from assistive technology.
  • Shimmer and pulse motion stop under prefers-reduced-motion; the static variant never animates.
  • Compose lines, circles, blocks, rows, stacks, and cards at the loaded content's dimensions to prevent layout shift when content swaps in.
canvasvariant="shimmer"feedback
Feedback and state
Loading team members
skeleton group variant

Code example

usage.tsx
"use client";import { useState } from "react";import {  SkeletonGroup,  SkeletonGroupBlock,  SkeletonGroupCard,  SkeletonGroupCircle,  SkeletonGroupLine,  SkeletonGroupRow,  SkeletonGroupStack,  type SkeletonGroupVariant,} from "@/components/ui/uai/skeleton-group";const members = [  { name: "Maya Chen", role: "Design lead", initials: "MC" },  { name: "Jonas Weber", role: "Engineering", initials: "JW" },  { name: "Priya Natarajan", role: "Product", initials: "PN" },];export function SkeletonGroupPreview({ variant = "shimmer" }: { variant?: SkeletonGroupVariant }) {  const [loading, setLoading] = useState(true);  return (    <div style={{ display: "grid", gap: 12 }}>      {loading ? (        <SkeletonGroup variant={variant} label="Loading team members">          <SkeletonGroupCard>            <SkeletonGroupBlock height={72} />            {members.map((member) => (              <SkeletonGroupRow key={member.name}>                <SkeletonGroupCircle size={32} />                <SkeletonGroupStack style={{ gap: 7 }}>                  <SkeletonGroupLine width="45%" height={11} />                  <SkeletonGroupLine width="28%" height={9} />                </SkeletonGroupStack>              </SkeletonGroupRow>            ))}          </SkeletonGroupCard>        </SkeletonGroup>      ) : (        <section          aria-label="Team members"          style={{            display: "grid",            gap: 14,            padding: 16,            border: "1px solid var(--uai-border)",            borderRadius: 14,            background: "var(--uai-surface)",            fontSize: 13,          }}        >          <div            style={{              display: "grid",              alignContent: "center",              height: 72,              padding: "0 14px",              gap: 2,              borderRadius: 10,              background: "var(--uai-surface-raised)",            }}          >            <strong style={{ fontWeight: 500 }}>Growth team</strong>            <span style={{ color: "var(--uai-subtle)", fontSize: 12 }}>              3 members · 12 projects            </span>          </div>          {members.map((member) => (            <div key={member.name} style={{ display: "flex", alignItems: "center", gap: 12 }}>              <span                aria-hidden="true"                style={{                  display: "grid",                  placeItems: "center",                  width: 32,                  height: 32,                  borderRadius: 999,                  background: "var(--uai-surface-raised)",                  boxShadow: "0 0 0 1px color-mix(in oklab, var(--uai-text) 6%, transparent)",                  color: "var(--uai-muted)",                  fontSize: 11,                  fontWeight: 500,                }}              >                {member.initials}              </span>              <span style={{ display: "grid", gap: 2, lineHeight: "18px" }}>                <span style={{ fontWeight: 500 }}>{member.name}</span>                <span style={{ color: "var(--uai-subtle)", fontSize: 12, lineHeight: "16px" }}>                  {member.role}                </span>              </span>            </div>          ))}        </section>      )}      <button        type="button"        onClick={() => setLoading((value) => !value)}        style={{          justifySelf: "start",          height: 28,          padding: "0 12px",          border: 0,          borderRadius: 999,          background: "var(--uai-surface-raised)",          color: "var(--uai-text)",          fontSize: 12.5,          fontWeight: 500,          cursor: "pointer",        }}      >        {loading ? "Show loaded content" : "Show skeleton"}      </button>    </div>  );}

Manual installation

skeleton-group.tsx

Loading component source…

esc
ThinkingAI
MessageAI
CitationAI
AttachmentAI
Tool CallAI
Response StatusAI
Run SummaryAI
Conversation ThreadAI · Block
Research SessionAI · Block
File AnalysisAI · Block
Agent RunAI · Block
Approval CardFeedback
Empty StateFeedback
Status BannerFeedback
Progress SummaryFeedback
Inline FeedbackFeedback
Confirmation DialogFeedback
Activity TimelineFeedback
Skeleton GroupFeedback
Prompt ComposerForms
Form FieldForms
Search FieldForms
Filter BarForms
File UploadForms
Date Range PickerForms
Form Error SummaryForms
Unsaved Changes BarForms
Step IndicatorForms
Task ListData Display
Data Table ToolbarData Display
Metric CardData Display
Description ListData Display
Comparison TableData Display
Kanban BoardData Display
Calendar ViewData Display
Audit LogData Display
App HeaderNavigation
App SidebarNavigation
Breadcrumb TrailNavigation
Page TabsNavigation
Command MenuNavigation
Split PaneNavigation
Sign-in CardAuthentication
Sign-up CardAuthentication
Password RecoveryAuthentication
Code VerificationAuthentication · Block
Onboarding WizardAuthentication · Block
Workspace SetupAuthentication · Block
Coupon FieldCommerce
Quantity PickerCommerce
Cart ItemCommerce
Price SummaryCommerce
Order StatusCommerce
Product DetailCommerce · Block
Product ListingCommerce · Block
Cart DrawerCommerce · Block
CheckoutCommerce · Block
Order TrackingCommerce · Block
Subscription ManagementCommerce · Block
Announcement BarMarketing
Pricing ToggleMarketing
Testimonial CardMarketing
Product GalleryMarketing
Trust PanelMarketing
Newsletter FormMarketing
Hero SectionMarketing · Block
Feature ShowcaseMarketing · Block
Pricing SectionMarketing · Block
Testimonials SectionMarketing · Block
FAQ SectionMarketing · Block
Call to ActionMarketing · Block
Waitlist SectionMarketing · Block
Contact SectionMarketing · Block
Author CardContent
CommentContent
Reaction BarContent
Share MenuContent
Changelog EntryContent
Article PageContent · Block
Documentation PageContent · Block
Changelog PageContent · Block
Comment ThreadContent · Block
Community FeedContent · Block
Public ProfileContent · Block
Map FrameMaps
Map ControlsMaps
Map MarkerMaps
Map LegendMaps
Place CardMaps
Route SummaryMaps
Dashboard ShellApplication · Block
Settings PageApplication · Block
Profile PageApplication · Block
Team ManagementApplication · Block
Notification CenterApplication · Block
Billing PortalApplication · Block
Search ResultsApplication · Block
Resource ManagerOperations · Block
Data ExplorerOperations · Block
Import WorkflowOperations · Block
Approval QueueOperations · Block
Audit Log ViewerOperations · Block
Incident DashboardOperations · Block
Report BuilderOperations · Block
Document FieldBrazil
CEP FieldBrazil
Pix PaymentBrazil
Installment PickerBrazil