1. framework components
  2. collapsible

Collapsible

A container that can be expanded or collapsed to show or hide content.

Controlled

Control the active state of the component.

Indicator

Add a visual indicator to the toggle button.

Disabled

Set the disabled state for the component.

Alignment

Control the position and alignment of the trigger and content using flexbox items-*.

Direction

Set the text direction (ltr or rtl) using the dir prop.

Anatomy

Here’s an overview of how the Collapsible component is structured in code:

tsx
import { Collapsible } from '@skeletonlabs/skeleton-react';

export default function Anatomy() {
	return (
		<Collapsible>
			<Collapsible.Trigger />
			<Collapsible.Content />
		</Collapsible>
	);
}

API Reference

Unable to load component information for react/collapsible

View page on GitHub