Collapsible
An expand-and-collapse panel.
Anatomy
<script>
import { Collapsible } from '@shardsui/svelte/collapsible'
</script>
<Collapsible.Root>
<Collapsible.Trigger />
<Collapsible.Panel />
</Collapsible.Root>API reference
Root
Groups all parts of the collapsible.
Renders a <div> element.
Trigger
A button that opens and closes the collapsible panel.
Renders a <button> element.
Panel
A panel with the collapsible contents.
Renders a <div> element.