docs: add details shortcode page

This commit is contained in:
Xin
2023-09-02 15:47:36 +01:00
parent 11f122307e
commit c68ffe3362

View File

@ -0,0 +1,43 @@
---
title: Details
---
A built-in component to display a collapsible content.
<!--more-->
## Example
{{% details title="Details" %}}
This is the content of the details.
Markdown is **supported**.
{{% /details %}}
{{% details title="Details Closed" closed="true" %}}
This will be closed by default.
{{% /details %}}
## Usage
````
{{%/* details title="Details" */%}}
This is the content of the details.
Markdown is **supported**.
{{%/* /details */%}}
````
````
{{%/* details title="Details Closed" closed="true" */%}}
This will be closed by default.
{{%/* /details */%}}
````