uiable

Accordion Active Background

Component 3

About

An accordion whose currently open item gets a highlighted border and tinted background, useful for FAQ sections where the active question should stand out.

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

Code

How Accordion Active Background is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import AccordionActiveBg from "@/components/ui/accordion-active-bg";

export default function AccordionActiveBgDemo() {
  return (
    <div className="w-full max-w-md">
      <AccordionActiveBg />
    </div>
  );
}

More by uiable

View all
  • Feature Highlights Grid

    Feature Highlights Grid

    414
  • Card Tabs

    Card Tabs

    112
  • Financial Bento Grid

    Financial Bento Grid

    93
  • Chart Tooltip

    Chart Tooltip

    75
  • Portfolio Showcase Grid

    Portfolio Showcase Grid

    69
  • Marketing Hero Section

    Marketing Hero Section

    68
  • Sidebar with Search and Profile

    Sidebar with Search and Profile

    57
  • Position Sonner

    Position Sonner

    48