sphinx-togglebutton icon indicating copy to clipboard operation
sphinx-togglebutton copied to clipboard

Custom title for toggle directive

Open tfiers opened this issue 3 years ago • 2 comments
trafficstars

Context

Using an admonition and :class: dropdown, you can nicely choose the title. This lets users know what they can expect when they expand the container.

You cannot currently do this with toggle however.

Admonitions are quite heavy visually, so it's nice to alternate with toggles, if there's a lot of them on a page.

Proposal

Syntax example (myst form), taken from the second example here in the jupyterbook docs, which seems to suggest this feature already exists.

```{toggle} Click the button to reveal!

Some hidden toggle content!
```

Tasks and updates

No response

tfiers avatar May 23 '22 15:05 tfiers

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar May 23 '22 15:05 welcome[bot]

this would be very cool!

zerothi avatar Nov 03 '23 14:11 zerothi