Docs
Collapsible

Collapsible

An interactive component which expands/collapses a panel.

Loading...

Installation

	npx svell@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>

Built & designed by shadcn. Ported to Svelte by netronk. The source code is available on GitHub.