Docs
Collapsible
Collapsible
An interactive component which expands/collapses a panel.
@thomasglopes starred 3 repositories
tglide/radix-svelte
Installation
npx shadcn-svelte add collapsible
npx shadcn-svelte add collapsible
Usage
<script lang="ts">
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger
} from "$components/ui/collapsible";
</script>
<script lang="ts">
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger
} from "$components/ui/collapsible";
</script>
<Collapsible>
<CollapsibleTrigger>Can I use this in my project?</CollapsibleTrigger>
<CollapsibleContent>
Yes. Free to use for personal and commercial projects. No attribution
required.
</CollapsibleContent>
</Collapsible>
<Collapsible>
<CollapsibleTrigger>Can I use this in my project?</CollapsibleTrigger>
<CollapsibleContent>
Yes. Free to use for personal and commercial projects. No attribution
required.
</CollapsibleContent>
</Collapsible>
On This Page