Collapsible | CombricSkip to content

Collapsible

Combric

Single disclosure with controlled or uncontrolled open state.

@combric/react · v1.1.1 · Current

Import and usage

import { Collapsible, CollapsibleTrigger, CollapsibleContent } from "@combric/react";

Load the native stylesheet with @import "@combric/react/css";. This path does not require Tailwind.

Examples

Collapsible section

Package-first component catalogue.

Disabled trigger

Public API

Public exports
Name
Collapsible
CollapsibleTrigger
CollapsibleContent
Documented contracts
Property / capabilityPublished contract
Contractopen/defaultOpen
ContractonOpenChange
Contractdisabled

Accessibility

Stable aria-expanded and aria-controls relationships connect the native trigger to its region.

Keyboard

Native button Enter and Space behavior.

CSS and customization

Combric classes and canonical --combric-* variables provide the package presentation. Consumer className extends the required class; it does not replace the component contract.

Source

View source on GitHub