Content Section

Long-form marketing content block in three variants: split copy beside media that stays pinned while paragraphs scroll, a stats layout whose callouts roll their numbers up on view, and a pull quote framed by large typographic quote marks, with paragraphs revealed as they scroll into view.

Preview

Content Section preview width

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @karaui/content-section
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

variant?
"split" | "stats" | "quote"

"split": copy beside media (media sticks while the copy scrolls on wide containers). "stats": copy plus rolling stat callouts. "quote": a pull quote with large quote marks and its author.

split
eyebrow?
ReactNode
—
heading?
ReactNode
—
paragraphs?
ReactNode[]

Body copy; each entry is revealed as it scrolls into view.

—
children?
ReactNode

Extra content after the paragraphs (CTA, list).

—
media?
ReactNode

`variant="split"`: media node (image, mock UI, illustration).

—
mediaPosition?
"left" | "right"
right
stickyMedia?
boolean

`variant="split"`: keep the media pinned while the copy scrolls. Default true.

true
stats?
ContentStat[]

`variant="stats"`: up to 3 reads best.

[]
quote?
ReactNode

`variant="quote"`: the quote itself, without quote marks.

—
author?
ContentQuoteAuthor
—
locale?
string

Number formatting locale. Default "en-US" so server and client agree.

en-US
className?
string
—

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated