ai 2

Underline Accordion

Component 4

About

An animated accordion set where each opened item reveals a sweeping underline beneath its header, with five decorative line styles (sweep, center, grow, double, dashed).

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

Code

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

Usage.tsx

import AccordionUnderline from "@/components/ui/accordion-underline";

export default function AccordionUnderlineDemo() {
  return (
    <div className="w-full max-w-md mx-auto">
      <AccordionUnderline />
    </div>
  );
}

Dependencies

More by ai 2

View all
  • Ripple Buttons

    Ripple Buttons

    33
  • Styled Toggle Switches

    Styled Toggle Switches

    21
  • Styled Progress Bars

    Styled Progress Bars

    17
  • Styled Badges

    Styled Badges

    15
  • Particle Toggles

    Particle Toggles

    14
  • OTP Pin Input

    OTP Pin Input

    12
  • File Input

    File Input

    11
  • Combo Kbd

    Combo Kbd

    11