Item
@sushindustries/uiOne row of a list: tile, title, description, meta - the nav panel's anatomy, extracted for reuse.
One row of a list: an optional toned icon tile, a title, a fainter
description line, and a right-aligned meta label, rendered as a link when
href is given. Reach for it for a settings row, a changelog entry or any
list whose rows share that shape.
tanstacktanstack add https://adamjurek.com/r/tanstack/item.jsonpnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/item.jsonWhy it is built this way
The nav panel and the command palette had already drawn this exact anatomy
before ItemItemOne row of a list: tile, title, description, meta - the nav panel's anatomy, extracted for reuse.@sushindustries/ui · layout existed, so extracting it stops a settings page or a changelog
from rebuilding a slightly different version a third time. tone colours the
icon tile through data-tone and does nothing without iconIconThe glyph set, generated from a Markdown table where every drawing carries its reason. One component, typed names, no icon font.@sushindustries/ui · content, because the
tile is the only thing it was ever meant to colour.
What it does not do
It draws one row and nothing that manages many of them: no list wrapper, no
active-item tracking, no keyboard navigation between rows. Stack several
inside a <ul> or a flex column and that stays the consumer's concern, which
is what lets ItemItemOne row of a list: tile, title, description, meta - the nav panel's anatomy, extracted for reuse.@sushindustries/ui · layout sit next to the nav panel or the palette without
depending on either.
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/item.jsonpnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/item.jsonpnpm add @sushindustries/ui @sushindustries/atomsWhat you get
| Version | 0.1.0 |
| Category | layout · Containers |
| Files | item.tsx |
| Dependencies | None |
| Also installs | iconIconThe glyph set, generated from a Markdown table where every drawing carries its reason. One component, typed names, no icon font.@sushindustries/ui · content |
| Tags | list, row, no-deps |
No runtime dependencies
It brings nothing with it beyond the stylesheet.