Cards & content / Lists

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.

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>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Obsidian Precision

The whole style →

Bold Colour Testimonial Cards

Testimonials

Mono Uppercase Feature Tab List with Document Preview

Tab bars

Nested Initiatives Table

Tables

Quarterly Roadmap Board

Cards

Blur-In Word Hero with Floating App Window

Heroes

Frosted Hairline Header

Headers & nav bars