Tools for accessible toggling hidden/visible content
with various options for interaction details.
Example:
<button {{ toggle.btn('toggle-id') }}>toggle aside</button>
<aside {{ toggle.target('toggle-id', synced=true) }}>
<p>This content can be toggled</p>
<button {{ toggle.close('toggle-id') }}>close</button>
</aside>
Todo:
These macros require JS
which is not yet implemented
Controls
Attributes for the toggle-control button.
Params:
Attributes for the toggle-close button.
Params:
Content
Attributes for the element to be toggled.
Params:
See Also