Docs
Collapsible

Collapsible

Collapsible component is an interactive element that provides the ability to expand or collapse a panel, offering a dynamic and space-efficient way to present content. It enhances user experience by allowing them to control the visibility of content sections, making it suitable for scenarios where information can be displayed on demand, such as FAQ sections, dropdown menus, or detailed content within a limited space.

@peduarte starred 3 repositories

@radix-ui/primitives

Installation

yarn add @camped-ui/collapsible

Usage

import {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
} from "@camped-ui/collapsible";
<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>