Preview Code
Astro React Vue Svelte
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "flex items-center space-x-4" >
< Skeleton class = "h-12 w-12 rounded-full" />
< Skeleton class = "h-4 w-[250px]" />
< Skeleton class = "h-4 w-[200px]" />
import { Skeleton } from "@/components/starwind/skeleton" ;
export function Example () {
< div className = "flex items-center space-x-4" >
< Skeleton className = "h-12 w-12 rounded-full" />
< div className = "space-y-2" >
< Skeleton className = "h-4 w-[250px]" />
< Skeleton className = "h-4 w-[200px]" />
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "flex items-center space-x-4" >
< Skeleton class = "h-12 w-12 rounded-full" />
< Skeleton class = "h-4 w-[250px]" />
< Skeleton class = "h-4 w-[200px]" />
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "flex w-full max-w-[314px] items-center space-x-4" >
< Skeleton class = "h-12 w-12 shrink-0 rounded-full" />
< div class = "min-w-0 space-y-2" >
< Skeleton class = "h-4 w-[250px] max-w-full" />
< Skeleton class = "h-4 w-[200px] max-w-full" />
Astro React Vue Svelte
pnpm npm yarn
pnpx starwind@latest add skeleton --framework astro
npx starwind@latest add skeleton --framework astro
yarn dlx starwind@latest add skeleton --framework astro
pnpm npm yarn
pnpx starwind@latest add skeleton --framework react
npx starwind@latest add skeleton --framework react
yarn dlx starwind@latest add skeleton --framework react
pnpm npm yarn
pnpx starwind@latest add skeleton --framework vue
npx starwind@latest add skeleton --framework vue
yarn dlx starwind@latest add skeleton --framework vue
pnpm npm yarn
pnpx starwind@latest add skeleton --framework svelte
npx starwind@latest add skeleton --framework svelte
yarn dlx starwind@latest add skeleton --framework svelte
Astro React Vue Svelte
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "flex items-center space-x-4" >
< Skeleton class = "h-12 w-12 rounded-full" />
< Skeleton class = "h-4 w-[250px]" />
< Skeleton class = "h-4 w-[200px]" />
import { Skeleton } from "@/components/starwind/skeleton" ;
export function Example () {
< div className = "flex items-center space-x-4" >
< Skeleton className = "h-12 w-12 rounded-full" />
< div className = "space-y-2" >
< Skeleton className = "h-4 w-[250px]" />
< Skeleton className = "h-4 w-[200px]" />
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "flex items-center space-x-4" >
< Skeleton class = "h-12 w-12 rounded-full" />
< Skeleton class = "h-4 w-[250px]" />
< Skeleton class = "h-4 w-[200px]" />
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "flex items-center space-x-4" >
< Skeleton class = "h-12 w-12 rounded-full" />
< Skeleton class = "h-4 w-[250px]" />
< Skeleton class = "h-4 w-[200px]" />
Preview Code
Astro React Vue Svelte
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "flex flex-col space-y-3" >
< Skeleton class = "h-[125px] w-[250px] rounded-xl" />
< Skeleton class = "h-4 w-[250px]" />
< Skeleton class = "h-4 w-[200px]" />
import { Skeleton } from "@/components/starwind/skeleton" ;
export function Example () {
< div className = "flex flex-col space-y-3" >
< Skeleton className = "h-[125px] w-[250px] rounded-xl" />
< div className = "space-y-2" >
< Skeleton className = "h-4 w-[250px]" />
< Skeleton className = "h-4 w-[200px]" />
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "flex flex-col space-y-3" >
< Skeleton class = "h-[125px] w-[250px] rounded-xl" />
< Skeleton class = "h-4 w-[250px]" />
< Skeleton class = "h-4 w-[200px]" />
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "flex flex-col space-y-3" >
< Skeleton class = "h-[125px] w-[250px] rounded-xl" />
< Skeleton class = "h-4 w-[250px]" />
< Skeleton class = "h-4 w-[200px]" />
Preview Code
Astro React Vue Svelte
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "space-y-2 w-[250px]" >
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
import { Skeleton } from "@/components/starwind/skeleton" ;
export function Example () {
< div className = "space-y-2 w-[250px]" >
< Skeleton className = "h-8 w-full" />
< Skeleton className = "h-8 w-full" />
< Skeleton className = "h-8 w-full" />
< Skeleton className = "h-8 w-full" />
< Skeleton className = "h-8 w-full" />
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "space-y-2 w-[250px]" >
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
import { Skeleton } from "@/components/starwind/skeleton" ;
< div class = "space-y-2 w-[250px]" >
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
< Skeleton class = "h-8 w-full" />
View version history v1.3.1 · 6 releases v1.3.1 In Astro, an attribute that you set on Skeleton now wins over the component’s own default for the same attribute, such as role or aria-label. v1.3.0 The component is now available for React as well as Astro. Its props and styles stay the same. v1.2.2 The Tailwind variants now live in their own variants.ts file in the component folder. v1.1.0 Add data-slot attribute to enable global styling updates v1.0.0 Initial release with starwind v1.7.0 Layer Metadata Skeleton is a styled-only component. It uses Starwind styling and markup without a Runtime primitive. Skeleton is available for Astro, React, Vue, and Svelte.
styled-component Skeleton Skeleton is a styled-only component. It uses Starwind styling and markup without a Runtime primitive. Skeleton is available for Astro, React, Vue, and Svelte. Styled component Behavior Foundation skeleton styled-only Styled only /docs/components/skeleton/ Root SkeletonVariants Feedback & Status feedback status loading astro react Astro available Available Astro available React React available Vue Vue available Svelte Svelte available div attributes
Sidebar Slider