Home Collapsible

The Collapsible component is used to hide and reveal content with a toggle. It’s useful for progressively disclosing information without navigating away from the current page.

Installation

npm
npx phpxui add Collapsible

Usage

use Lib\PHPXUI\ {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
}

<Collapsible>
  <CollapsibleTrigger>Can I use this in my project?</CollapsibleTrigger>
  <CollapsibleContent>
    Yes. Free to use for personal and commercial projects. No attribution
    required.
  </CollapsibleContent>
</Collapsible>