Module

directives.builtins.dropdown

Dropdown directive for collapsible content.

Provides collapsible sections with markdown support including nested directives and code blocks.

Options:

:open: Start expanded (default: false) :icon: Icon name to display next to the title :badge: Badge text (e.g., "New", "Advanced", "Beta") :color: Color variant (success, warning, danger, info, minimal) :description: Secondary text below the title :class: Additional CSS classes

Example:

Thread Safety:

Stateless handler. Safe for concurrent use across threads.

Classes

Functions

_render_dropdown_icon 1 str
Render dropdown icon using icon resolver.
def _render_dropdown_icon(icon_name: str) -> str
Parameters
Name Type Description
icon_name str

Name of the icon to render

Returns
str