Details
Preview#
Why use the native element?
It keeps disclosure semantics and keyboard behaviour without custom JavaScript.
Example
{{< details title="Why not Kubernetes?" >}}When to use
A collapsible accordion section.
Implementation
layouts/shortcodes/details.htmlOptions
| Option | Read by the shortcode template |
|---|---|
title | Read by the shortcode template |
open | Read by the shortcode template |
Interface manifest
- Kind
- Shortcode
- Category
- Content
- Status
- Implemented
- Implementation
- Shortcode:
layouts/shortcodes/details.html