Collapsible
An expand-and-collapse panel.
Anatomy
<script setup>
import { Collapsible } from '@shardsui/vue/collapsible'
</script>
<template>
<Collapsible.Root>
<Collapsible.Trigger />
<Collapsible.Panel />
</Collapsible.Root>
</template>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.