forked from drowl87/hextra_mirror

* chore: add translation key for copy code button title * chore: remove id from code block elements * fix: copy the correct code target in code-copy.js * chore: update details.md * chore: remove console.log :) * chore: remove `$` in shell commands * chore: update docs
44 lines
616 B
Markdown
44 lines
616 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
|
|
|
|
````markdown
|
|
{{%/* details title="Details" */%}}
|
|
|
|
This is the content of the details.
|
|
|
|
Markdown is **supported**.
|
|
|
|
{{%/* /details */%}}
|
|
````
|
|
|
|
````markdown
|
|
{{%/* details title="Click me to reveal" closed="true" */%}}
|
|
|
|
This will be hidden by default.
|
|
|
|
{{%/* /details */%}}
|
|
````
|