popup directive#
The popup directive creates a button that opens a modal popup dialog with arbitrary content.
Basic usage#
```{popup} Show details
:title: Extra information
:width: 500
This content appears inside the modal.
```
Syntax overview#
The optional positional argument sets the button text. The body content is displayed inside the modal dialog.
Options#
Option |
Meaning |
Default |
|---|---|---|
|
Title displayed in the modal header |
button text |
|
Modal width in pixels |
auto |
|
Modal height |
auto |
Inline role#
This module also registers the {popup} inline role for tooltip-like popups within running text.