Collapsible
Show and hide content in a collapsible container.
Usage
Example
To learn more about SvelteKit, check out the SvelteKit documentation.
Props
title
type: string
The title to display in the trigger. "Hide" and "Show" prefix will be added automatically.
open
type: boolean
Whether the content should be open or closed.
default: false
triggerContent
type: Snippet
Override the content inside of the trigger button.
children
type: Snippet
The content that is collapsible.