ham7a311

Footnote FAQ

Component

About

An FAQ written as flowing prose where checkable phrases carry footnote numbers; clicking one opens its answer as a note right under that paragraph, with an index of every question below for scanning.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Footnote FAQ to your project and fits it to your theme.

Code

How Footnote FAQ is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { FootnoteFaq, type Paragraph } from "@/components/ui/footnote-faq";

const TEXT: Paragraph[] = [
  [
    "Acme builds every branch you push and gives it ",
    {
      text: "its own preview address",
      q: "Do previews cost extra?",
      a: "No. Previews are included on every plan, including Hobby. They count toward your build minutes but not toward seats, and they're deleted 30 days after the branch is merged.",
    },
    ". Production stays behind ",
    {
      text: "an approval you choose",
      q: "Who can approve a production deploy?",
      a: "Anyone with the Deployer role. On Team and Business you can require one or two approvals, and require that the approver isn't the person who wrote the change.",
    },
    ", and every deploy can be ",
    {
      text: "rolled back in one step",
      q: "How fast is a rollback?",
      a: "Usually under ten seconds. Acme keeps your last 20 production builds warm, so rolling back switches traffic instead of rebuilding.",
    },
    ".",
  ],
  [
    "You pay ",
    {
      text: "per seat, monthly or yearly",
      q: "What counts as a seat?",
      a: "A person who can deploy or approve. People who only view previews or leave comments are free, so designers and clients don't cost anything.",
    },
    ", in US dollars or euros, and ",
    {
      text: "you can leave whenever you like",
      q: "What happens to my data if I cancel?",
      a: "Your projects stay readable for 60 days, and you can export the build history and audit log as JSON at any time. After 60 days we delete them and email you to confirm.",
    },
    ". If you're a student at any accredited university, ",
    {
      text: "Team is free while you study",
      q: "How do students get Team for free?",
      a: "Sign in with your university email and we'll verify it. The plan renews each September as long as the address still works.",
    },
    ".",
  ],
];

export default function FootnoteFaqDemo() {
  return (
    <div className="flex min-h-full w-full justify-center bg-[#fbfaf6] px-6 py-12 sm:px-10 sm:py-16">
      <div className="w-full max-w-[40rem]">
        <p className="font-mono text-[0.6875rem] uppercase tracking-[0.14em] text-[#77716a]">
          Questions, answered
        </p>
        <h2 className="mb-6 mt-2 text-[clamp(2rem,5vw,2.75rem)] leading-none text-[#1d1b17]">
          Acme, in two paragraphs
        </h2>
        <FootnoteFaq paragraphs={TEXT} theme="paper" />
      </div>
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    12
  • Wave Mesh

    Wave Mesh

    7
  • Uptime Ribbon

    Uptime Ribbon

    6
  • Glass Carousel

    Glass Carousel

    6
  • Glass Tiles

    Glass Tiles

    6
  • Streak Field Stats

    Streak Field Stats

    5
  • Wind Map

    Wind Map

    4
  • Time Window

    Time Window

    4