Reference

@sushindustries/ui

An inline mention that carries a hover card with the target's own summary.

Last updated Aug 17, 20262 min read
View as Markdown

Prose that names ShowcaseShowcaseA component in a real iframe at every width it has to survive, side by side, with its source and install commands.@sushindustries/ui · docs and prose that links to it used to be two different sentences the author had to choose between.

A reference is both: it reads inline like code, and hovering it raises a card with the component's title, summary and package - so the reader decides whether the mention is worth a page visit before paying for one. Entering the mention follows the link.

Viewport width
Desktop100%whatever the page has
tanstacktanstack add https://adamjurek.com/r/tanstack/reference.jsonshadcnpnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/reference.json

Why it is built this way

The card is server markup that a stylesheet reveals - no JavaScript positions it and none opens it, so a page full of references costs nothing at hydration. :focus-within keeps it reachable by keyboard, and on coarse pointers the first tap opens and the second follows, which is native anchor behaviour left alone.

MarkdownView applies these automatically: pass it a references map keyed by the exact inline-code text to match, and every `Showcase` in a document becomes a walkable mention with zero authoring changes. The map is supplied by the host, so matching stays a lookup rather than entity extraction.

What it does not do

It does not guess. A mention resolves because the host said it does, and an unmatched mention stays ordinary inline code. It does not nest inside an existing link - a hover card inside somebody's chosen anchor would be two navigations fighting over one word.

Install commands are not written here

Anything in packages/ui/registry.ts gets its TanStack and shadcn commands attached automatically, so there is nothing to keep in sync.

Install

tanstack add https://adamjurek.com/r/tanstack/reference.json
shell
pnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/reference.json
shell
pnpm add @sushindustries/ui @sushindustries/atoms
shell

What you get

Version0.1.0
Categorycontent · Rendering
Filesreference.tsx
DependenciesNone
Tagshover, link, docs

No runtime dependencies

It brings nothing with it beyond the stylesheet.

Used byMarkdown ViewMarkdown ViewRenders Markdown with callouts, CSS-only tabs, custom blocks and highlighted code.@sushindustries/ui · content