ham7a311

Search FAQ

Component

About

A searchable FAQ list that filters and ranks questions as you type, highlights the matching words, and smoothly re-sorts the remaining rows.

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

Code

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

Usage.tsx

"use client";

import { SearchFaq } from "@/components/ui/search-faq";

const ITEMS = [
  {
    tag: "Billing",
    q: "Can I get a refund if it isn't right for us?",
    a: "Yes — within 30 days of any payment, no questions asked. Refunds go back to the original card within five working days.",
  },
  {
    tag: "Teams",
    q: "How do I add people to my team?",
    a: "Invite them from Settings → Members. Everyone gets their own login, and you choose whether they can deploy, review or only view.",
  },
  {
    tag: "Data",
    q: "Where is my data stored?",
    a: "In the region you pick when you create a project — Frankfurt, Bahrain, Virginia or Singapore. It never leaves that region without your say.",
  },
  {
    tag: "Billing",
    q: "Do you charge per seat or per usage?",
    a: "Per seat for the team plan, with generous usage included. You'll only see usage charges past the included amount, and we warn you before.",
  },
  {
    tag: "Security",
    q: "Do you support SSO and SCIM?",
    a: "Yes, on the Studio plan: SAML SSO with Okta, Azure AD and Google, plus SCIM provisioning so your team list stays in sync.",
  },
  {
    tag: "Data",
    q: "Can I export everything and leave?",
    a: "Any time, in one click — projects, logs and settings as a single archive. We'd be sad, but we'll never make leaving hard.",
  },
];

export default function Demo() {
  return (
    <div className="flex min-h-full w-full items-start justify-center bg-[#0b080d] px-8 py-14">
      <SearchFaq items={ITEMS} />
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    13
  • Wave Mesh

    Wave Mesh

    8
  • 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

    5
  • Time Window

    Time Window

    4