---
title: "Collapsible"
canonical_url: "https://nnsvn.me/products/nuxt-starter-kit/components/page/collapsible"
---

> Index of every page on this site: [llms.txt](https://nnsvn.me/llms.txt)

## Usage

### Simple

<ct-stack>
<div className="p-4,md:p-6">
<ct-collapsible>
<template v-slot:title="">

Show properties

</template>

<template v-slot:content="">

This is a **Simple** style collapsible.

</template>
</ct-collapsible>
</div>

```mdc
::ct-collapsible
#title
Show properties

#content
This is a **Simple** style collapsible.
::
```

</ct-stack>

### Card

<ct-stack>
<div className="p-4,md:p-6">
<ct-collapsible title="@peduarte starred 3 repositories" variant="card">

@radix-ui/primitives

</ct-collapsible>
</div>

```mdc
::ct-collapsible{variant="card" title="@peduarte starred 3 repositories"}
@radix-ui/primitives
::
```

</ct-stack>

## Props

<ct-field-group>
<ct-field name="variant" type="'simple' | 'card'" default-value="'simple'">



</ct-field>

<ct-field name="title" type="string">

Collapsible title

</ct-field>

<ct-field name="defaultOpen" type="boolean" default-value="false">



</ct-field>
</ct-field-group>

## Sitemap

See the full [sitemap](https://nnsvn.me/sitemap.md) for all pages.
