docs: clean

This commit is contained in:
Benjamin Canac
2024-08-01 17:17:52 +02:00
parent 787ab001bd
commit e598ca5b40
3 changed files with 5 additions and 26 deletions

View File

@@ -15,11 +15,7 @@ Use a [Button](/components/button) or any other component in the default slot of
Then, use the `#content` slot to add the content displayed when the Collapsible is open.
::component-example
---
name: 'collapsible-example'
---
::
:component-example{name="collapsible-example"}
## Examples
@@ -27,11 +23,7 @@ name: 'collapsible-example'
You can control the open state by using the `default-open` prop or the `v-model:open` directive.
::component-example
---
name: 'collapsible-open-example'
---
::
:component-example{name="collapsible-open-example"}
::note
In this example, press :kbd{value="O" color="blue"} to toggle the Collapsible.
@@ -41,11 +33,7 @@ In this example, press :kbd{value="O" color="blue"} to toggle the Collapsible.
Here is an example with a rotating icon in the Button that indicates the open state of the Collapsible.
::component-example
---
name: 'collapsible-icon-example'
---
::
:component-example{name="collapsible-icon-example"}
## API