Collapsible
Reveal optional content in place.Examples
Installation
Install the package, then import only the components a route uses. Exports are tree-shakable.
Install
pnpm add fractalsvelteImport
<script lang="ts">
import { Collapsible } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Collapsible } from 'fractalsvelte';
</script>
<Collapsible label="Toggle details">More detail</Collapsible>Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | - | Accessible label for the trigger. |
open | boolean | false | Whether the surface is open. Supports bind:. |
disabled | boolean | false | Prevents interaction while preserving semantic state. |
