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:

svelte
<script lang="ts">
	import { Collapsible } from '@skeletonlabs/skeleton-svelte';
</script>

<Collapsible>
	<Collapsible.Trigger />
	<Collapsible.Content />
</Collapsible>

API Reference

Unable to load component information for svelte/collapsible

View page on GitHub