Documentation

Tubelight Accordion

An accordion component with a unique "tubelight" flicker animation effect on sticky headers and content revelation.

Preview

Why don't I ever have brilliant ideas in meetings?

Installation

npx shadcn add https://dark-ui.vercel.app/r/tubelight-accordion.json

Usage

import TubelightAccordion from "@/components/tubelight-accordion";

export default function Example() {
  return (
    <TubelightAccordion
      question="What is the Tubelight effect?"
      answer="It mimics the flickering of an old fluorescent tube light before it fully turns on, adding a retro, industrial feel to the UI."
    />
  );
}

Props

PropTypeDefaultDescription
classNamestringundefinedCustom class for the container.
questionstring"Why..."The header/question text.
answerstring"Because..."The body/answer text.