Design System
Design System
Controlled
Control the active state of the component.
The world dies over and over again, but the skeleton always gets up and walks. Every heart has its own skeletons. The bones of the skeleton which support the body can become the bars of the cage which imprison the spirit.
The world dies over and over again, but the skeleton always gets up and walks. Every heart has its own skeletons. The bones of the
skeleton which support the body can become the bars of the cage which imprison the spirit.
Indicator
Add a visual indicator to the toggle button.
The world dies over and over again, but the skeleton always gets up and walks. Every heart has its own skeletons. The bones of the skeleton which support the body can become the bars of the cage which imprison the spirit.
The world dies over and over again, but the skeleton always gets up and walks. Every heart has its own skeletons. The bones of the
skeleton which support the body can become the bars of the cage which imprison the spirit.
Disabled
Set the disabled state for the component.
Hidden!
Hidden!
Alignment
Control the position and alignment of the trigger and content using flexbox items-*.
The world dies over and over again, but the skeleton always gets up and walks. Every heart has its own skeletons. The bones of the skeleton which support the body can become the bars of the cage which imprison the spirit.
The world dies over and over again, but the skeleton always gets up and walks. Every heart has its own skeletons. The bones of the
skeleton which support the body can become the bars of the cage which imprison the spirit.
Direction
Set the text direction (ltr or rtl) using the dir prop.
The world dies over and over again, but the skeleton always gets up and walks. Every heart has its own skeletons. The bones of the skeleton which support the body can become the bars of the cage which imprison the spirit.
The world dies over and over again, but the skeleton always gets up and walks. Every heart has its own skeletons. The bones of the
skeleton which support the body can become the bars of the cage which imprison the spirit.
Anatomy
Here’s an overview of how the Collapsible component is structured in code:
import { Collapsible } from '@skeletonlabs/skeleton-react';
export default function Anatomy() {
return (
<Collapsible>
<Collapsible.Trigger />
<Collapsible.Content />
</Collapsible>
);
}<script lang="ts">
import { Collapsible } from '@skeletonlabs/skeleton-svelte';
</script>
<Collapsible>
<Collapsible.Trigger />
<Collapsible.Content />
</Collapsible>API Reference
Unable to load component information for react/collapsible
Unable to load component information for svelte/collapsible