Skip to content

Custom title for toggle directiveΒ #43

@tfiers

Description

@tfiers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions