Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
A soft placeholder that melts into the real content once it loads.
npx shadcn@latest add ikislay/pixel-ui/skeletonimport { Skeleton } from "@/components/ui/skeleton"export function Demo({ user }: { user?: { name: string } }) {return (<Skeleton loading={!user} className="h-4 w-40"><p>{user?.name}</p></Skeleton>)}
1// Loading…
Options you can pass to customize this component.
loadingbooleanShows the placeholder while true and the children once false.
childrenReactNodeThe real content to reveal when loading ends.
classNamestringSizes and shapes the placeholder, for example h-4 w-32 or size-11 rounded-full.