Skip to content

feat(scraps): Publish Heading in the shadcn registry - #133337

Draft
sentry-junior[bot] wants to merge 1 commit into
masterfrom
nm/scraps-shadcn-heading
Draft

sentry-junior[bot] wants to merge 1 commit into
masterfrom
nm/scraps-shadcn-heading

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Adds a scraps/heading item to the Scraps shadcn registry.

pnpm dlx shadcn@latest add getsentry/sentry/scraps/heading

It installs components/ui/scraps/heading.tsx, which re-exports Heading and HeadingProps from @sentry/scraps/text, plus @sentry/scraps@>=0.8.0 and @emotion/react. The target sits under ui/scraps/ like the Button item, so it can't collide with shadcn's own files.

Why not stock shadcn: shadcn/ui has no heading component, only copy-paste Tailwind classes on its Typography page. Scraps Heading requires a semantic level (as="h1"–"h6"), gives each level a default Scraps size, and lets size change the look without changing the level. It also brings Scraps weights, colors (variant), responsive sizes, and ellipsis handling.

Setup: add the scraps theme first, and render under ScrapsProvider or the scraps/theme-provider ThemeProvider. The README gets a new ## shadcn/ui components section with a ### Heading subsection: the install command and a short heading-levels example.

Heading's Emotion styles (margin reset, color, font) aren't in a cascade layer, so they beat Tailwind utilities passed in className. For example, className="mt-8 text-red-500" has no effect. The README says to space headings from the parent and to use variant for color. The same applies to the Button item.

Closes DE-1985

via @natemoo-re.

--

View Session [Sentry]

Add a scraps/heading registry:ui item that re-exports Heading from
@sentry/scraps/text to components/ui/scraps/heading.tsx, and document
it in the package README.

Closes DE-1985
@linear-code

linear-code Bot commented Dec 3, 2026

Copy link
Copy Markdown

DE-1985

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 3, 2026

This branch was successfully deployed

1 active deployment
Preview – sentry — 5e548fa9 Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant