forked from drowl87/hextra_mirror

* feat: details shortcode * docs: add details shortcode page * chore: update shortcodes page * docs: update * Revert "chore: update shortcodes page" This reverts commit c005ad4cb15a868ed7552b628fff025c1c5b0700.
44 lines
600 B
Markdown
44 lines
600 B
Markdown
---
|
|
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="Click me to reveal" closed="true" %}}
|
|
|
|
This will be hidden by default.
|
|
|
|
{{% /details %}}
|
|
|
|
## Usage
|
|
|
|
````
|
|
{{%/* details title="Details" */%}}
|
|
|
|
This is the content of the details.
|
|
|
|
Markdown is **supported**.
|
|
|
|
{{%/* /details */%}}
|
|
````
|
|
|
|
````
|
|
{{%/* details title="Click me to reveal" closed="true" */%}}
|
|
|
|
This will be hidden by default.
|
|
|
|
{{%/* /details */%}}
|
|
````
|