Docs
Collapsible

Collapsible

An interactive component which expands/collapses a panel.

Loading...

Installation

	npx  shadcn-svelte@latest add collapsible

Usage

	<script lang="ts">
  import * as Collapsible from "$lib/components/ui/collapsible";
</script>
 
<Collapsible.Root>
  <Collapsible.Trigger>Can I use this in my project?</Collapsible.Trigger>
  <Collapsible.Content>
    Yes. Free to use for personal and commercial projects. No attribution
    required.
  </Collapsible.Content>
</Collapsible.Root>