Back to Shark UI

Skeleton

docs/components/skeleton

latest6.2 KB
Original Source

Sections

Components

Utilities

Forms

Hooks

Skeleton

Copy Markdown

Displays a loading state.

DocsAPI

PreviewCode

Installation#

CLIManual

pnpmbunnpmyarn

pnpm dlx shadcn@latest add @shark/skeleton

Usage#

import { 
  Skeleton,
  SkeletonCircle,
  SkeletonText,
} from "@/components/ui/skeleton";
<SkeletonCircle />
<SkeletonText />
<Skeleton />

Examples#

Skeleton#

Rectangular skeleton placeholder.

PreviewCode

Circle#

Circular skeleton placeholder.

PreviewCode

Text#

Use the lines prop to control the number of placeholder lines; the last line is shorter by default.

PreviewCode

Loading cards#

PreviewCode

API Reference#

Skeleton#

Rectangular loading placeholder.

PropTypeDefault
classNamestring-
asChildboolean-

SkeletonCircle#

Circular loading placeholder.

PropTypeDefault
classNamestring-
asChildboolean-

SkeletonText#

Multi-line text placeholder. Last line is shorter by default to mimic text.

PropTypeDefault
linesnumber2
classNamestring-
asChildboolean-

For a complete list of props, see the Ark UI documentation.

[

Previous page

Signature Pad ](/docs/components/signature-pad)[

Next page

Skip Nav ](/docs/components/skip-nav)

On This Page

InstallationUsageExamplesSkeletonCircleTextLoading cardsAPI ReferenceSkeletonSkeletonCircleSkeletonText