Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Skeleton examples · Content

Content with Sidebar Skeleton for React

A page placeholder with a wide article column next to a sidebar of two cards.

Framework
UI library

A loading page in two parts: an article column with a title, an image and two paragraphs, and a sidebar with two bordered cards, the second one a list of links. A three-column grid gives the article two columns and the sidebar one.

Use it for article pages with related content, or docs with a side list. Every block is a Skeleton.

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.

FAQ

How is the page split?

A grid w-full max-w-5xl grid-cols-3 gap-8. The article is col-span-2 with gap-6. The sidebar is the remaining column, two cards stacked with gap-6.

What is in the article column?

An h-8 w-3/4 title, an h-64 w-full image, then two paragraph groups with gap-3. The first ends on w-5/6. The second ends on w-4/6. Every line is h-4.

What do the sidebar cards contain?

Each card is flex flex-col gap-3 rounded-md border p-4. The first has an h-5 w-24 title and two h-4 lines. The second has an h-5 w-32 title and four link rows.

How do I keep this layout from jumping?

Match h-64 to the hero, col-span-2 to the real article column, and the four link rows to the list you render. The grid is grid-cols-3 at every width in this file.

Should the page skeleton be announced?

Set aria-hidden on the bars when nearby text already says the page is loading. Skeleton is a placeholder, and a text status should carry the message.