ai 2

Styled Collapsible

Component

About

An animated single-section disclosure (accordion-style toggle) with five decorative variants — simple, card, ghost, plus-icon and truncated preview — for hiding and revealing content like FAQ answers or "show more" text.

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

Code

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

Usage.tsx

import CollapsibleStyled from "@/components/ui/collapsible-styled";

export default function CollapsibleStyledDemo() {
  return (
    <div className="w-full max-w-md mx-auto p-6">
      <CollapsibleStyled />
    </div>
  );
}

Dependencies

More by ai 2

View all
  • Ripple Buttons

    Ripple Buttons

    31
  • Styled Toggle Switches

    Styled Toggle Switches

    14
  • Styled Progress Bars

    Styled Progress Bars

    14
  • Styled Badges

    Styled Badges

    10
  • OTP Pin Input

    OTP Pin Input

    8
  • Particle Toggles

    Particle Toggles

    7
  • Input Group Glass

    Input Group Glass

    6
  • File Input

    File Input

    6