Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom title for toggle directive #43

Open
tfiers opened this issue May 23, 2022 · 2 comments
Open

Custom title for toggle directive #43

tfiers opened this issue May 23, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@tfiers
Copy link

tfiers commented May 23, 2022

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 tfiers added the enhancement New feature or request label May 23, 2022
@welcome
Copy link

welcome bot commented May 23, 2022

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

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! 🎉

@zerothi
Copy link

zerothi commented Nov 3, 2023

this would be very cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants