Plus-Suffixed Feature Link Index
A 'Features' label on the left and two columns of small grey link labels with '+' suffixes, separated by a vertical hairline. Used under each feature section.
Rebuilt from linear.app in the Obsidian Precision style.
npx shadcn@latest add https://justyoink.it/r/obsidian-precision-5cbef2/blocks/feature-link-index.json
Looks exactly like linear.app: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/obsidian-precision-5cbef2/mine/feature-link-index.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: `heading` (left label) and `columns` (array of two arrays of {label, detail}). Clicking a link toggles its plus to an x and shows its detail below; hover brightens the label.
components/feature-link-index.tsx
import { useState } from "react"; const PlusIcon = ({ open }: { open: boolean }) => ( <svg width="10" height="10" viewBox="0 0 10 10" fill="none" stroke="currentColor" strokeWidth="1.2" strokeLinecap="round" aria-hidden="true" className={"transition-transform duration-300 " + (open ? "rotate-45" : "")}> <path d="M5 1v8M1 5h8" /> </svg> ); type Item = { label: string; detail: string }; export default function PlusSuffixedFeatureLinkIndex({ heading = "Features", columns = [ [ { label: "Projects", detail: "Group work into scoped efforts with owners, dates and progress." }, { label: "Pulse", detail: "A running digest of what moved across your teams this week." }, { label: "Visual planning", detail: "Drag milestones along a timeline and see conflicts early." }, ], [ { label: "Documents", detail: "Write specs beside the work they describe." }, { label: "Initiatives", detail: "Tie projects to long-term goals and track outcomes." }, { label: "Insights", detail: "Charts on throughput, cycle time and workload." }, ], ] as Item[][], }: { heading?: string; columns?: Item[][]; }) { const [open, setOpen] = useState<string | null>(null); const active = columns.flat().find((i) => i.label === open); return ( <section className="bg-canvas px-6 py-10 font-sans"> <div className="mx-auto grid max-w-[1280px] gap-8 md:grid-cols-2"> <h2 className="text-ui text-quaternary">{heading}</h2> <div> <div className="flex"> {columns.map((col, ci) => ( <ul key={ci} className={"flex flex-1 flex-col gap-1 " + (ci > 0 ? "ml-8 border-l border-hairline pl-8" : "")}> {col.map((item) => ( <li key={item.label}> <button type="button" aria-expanded={open === item.label} onClick={() => setOpen(open === item.label ? null : item.label)} className="inline-flex items-center gap-2 py-1 text-ui text-tertiary transition-[filter,color] duration-300 hover:text-secondary hover:brightness-[1.3] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-indigo rounded-xs" > {item.label} <PlusIcon open={open === item.label} /> </button> </li> ))} </ul> ))} </div> {active && ( <p className="mt-4 max-w-md border-t border-hairline-subtle pt-4 text-ui text-secondary">{active.detail}</p> )} </div> </div> </section> ); }import { useState } from "react"; const PlusIcon = ({ open }: { open: boolean }) => ( <svg width="10" height="10" viewBox="0 0 10 10" fill="none" stroke="currentColor" strokeWidth="1.2" strokeLinecap="round" aria-hidden="true" className={"transition-transform duration-300 " + (open ? "rotate-45" : "")}> <path d="M5 1v8M1 5h8" /> </svg> ); type Item = { label: string; detail: string }; export default function PlusSuffixedFeatureLinkIndex({ heading = "Features", columns = [ [ { label: "Projects", detail: "Group work into scoped efforts with owners, dates and progress." }, { label: "Pulse", detail: "A running digest of what moved across your teams this week." }, { label: "Visual planning", detail: "Drag milestones along a timeline and see conflicts early." }, ], [ { label: "Documents", detail: "Write specs beside the work they describe." }, { label: "Initiatives", detail: "Tie projects to long-term goals and track outcomes." }, { label: "Insights", detail: "Charts on throughput, cycle time and workload." }, ], ] as Item[][], }: { heading?: string; columns?: Item[][]; }) { const [open, setOpen] = useState<string | null>(null); const active = columns.flat().find((i) => i.label === open); return ( <section className="bg-background px-6 py-10 font-sans"> <div className="mx-auto grid max-w-[1280px] gap-8 md:grid-cols-2"> <h2 className="text-obsidian-ui text-muted-foreground">{heading}</h2> <div> <div className="flex"> {columns.map((col, ci) => ( <ul key={ci} className={"flex flex-1 flex-col gap-1 " + (ci > 0 ? "ml-8 border-l border-border pl-8" : "")}> {col.map((item) => ( <li key={item.label}> <button type="button" aria-expanded={open === item.label} onClick={() => setOpen(open === item.label ? null : item.label)} className="inline-flex items-center gap-2 py-1 text-obsidian-ui text-muted-foreground transition-[filter,color] duration-300 hover:text-muted-foreground hover:brightness-[1.3] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary rounded-sm" > {item.label} <PlusIcon open={open === item.label} /> </button> </li> ))} </ul> ))} </div> {active && ( <p className="mt-4 max-w-md border-t border-border pt-4 text-obsidian-ui text-muted-foreground">{active.detail}</p> )} </div> </div> </section> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: not passedElements must meet minimum color contrast ratio thresholds (1 element)
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.