Skip to content
wdj

Dialog

Implemented Overlay

Native <dialog> modal with focus management.

Kumo reference: kumo-ui.com/components/dialog/

Presentation commands show demo feedback. Read the interaction guide to connect real actions.

Basic

Modal title

Review the selected item before continuing. Confirm this action or cancel to return to the page.

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="dialog_basic" title="Modal title" trigger_label="Delete" description="Review the selected item before continuing. Confirm this action or cancel to return to the page." %}
<div class="mt-4 flex justify-end gap-2">
  <button type="button" data-wdj-dialog-close class="inline-flex h-9 items-center rounded-lg bg-kumo-base px-3 text-base font-medium ring-1 ring-kumo-line hover:bg-kumo-tint">Cancel</button>
  <button type="button" data-wdj-dialog-close class="inline-flex h-9 items-center rounded-lg bg-kumo-danger-fill px-3 text-base font-medium text-white ring-1 ring-kumo-danger">Delete</button>
</div>
{% endwdj_component %}

Form

Project settings

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="dialog_form" title="Project settings" trigger_label="Open form"  %}
<form method="dialog" class="grid gap-4">{% include "wdj/components/input.html" with name="dialog_project" label="Project name" required=True only %}{% include "wdj/components/button.html" with label="Save" type="submit" variant="primary" only %}</form>
{% endwdj_component %}

Description

Project settings

Manage your project settings.

Review the details before continuing.

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="dialog_description" title="Project settings" trigger_label="Open description" description="Manage your project settings." %}
<p class="text-base">Review the details before continuing.</p>
{% endwdj_component %}

Large

Project settings

Review the details before continuing.

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="dialog_large" title="Project settings" trigger_label="Open large" size="lg" %}
<p class="text-base">Review the details before continuing.</p>
{% endwdj_component %}

Scrolling body

Project settings

Resource details and configuration 0.

Resource details and configuration 1.

Resource details and configuration 2.

Resource details and configuration 3.

Resource details and configuration 4.

Resource details and configuration 5.

Resource details and configuration 6.

Resource details and configuration 7.

Resource details and configuration 8.

Resource details and configuration 9.

Resource details and configuration 10.

Resource details and configuration 11.

Resource details and configuration 12.

Resource details and configuration 13.

Resource details and configuration 14.

Resource details and configuration 15.

Resource details and configuration 16.

Resource details and configuration 17.

Resource details and configuration 18.

Resource details and configuration 19.

Resource details and configuration 20.

Resource details and configuration 21.

Resource details and configuration 22.

Resource details and configuration 23.

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="dialog_scrolling_body" title="Project settings" trigger_label="Open scrolling body"  %}
<div class="grid gap-4"><p class="text-base">Resource details and configuration 0.</p><p class="text-base">Resource details and configuration 1.</p><p class="text-base">Resource details and configuration 2.</p><p class="text-base">Resource details and configuration 3.</p><p class="text-base">Resource details and configuration 4.</p><p class="text-base">Resource details and configuration 5.</p><p class="text-base">Resource details and configuration 6.</p><p class="text-base">Resource details and configuration 7.</p><p class="text-base">Resource details and configuration 8.</p><p class="text-base">Resource details and configuration 9.</p><p class="text-base">Resource details and configuration 10.</p><p class="text-base">Resource details and configuration 11.</p><p class="text-base">Resource details and configuration 12.</p><p class="text-base">Resource details and configuration 13.</p><p class="text-base">Resource details and configuration 14.</p><p class="text-base">Resource details and configuration 15.</p><p class="text-base">Resource details and configuration 16.</p><p class="text-base">Resource details and configuration 17.</p><p class="text-base">Resource details and configuration 18.</p><p class="text-base">Resource details and configuration 19.</p><p class="text-base">Resource details and configuration 20.</p><p class="text-base">Resource details and configuration 21.</p><p class="text-base">Resource details and configuration 22.</p><p class="text-base">Resource details and configuration 23.</p></div>
{% endwdj_component %}

Small

Confirm action

Review the change.

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="dialog_small" title="Confirm action" trigger_label="Open small dialog" size="sm" %}
<p class="text-base">Review the change.</p>
{% endwdj_component %}

Extra large

Deployment details

Deployment summary.

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="dialog_xl" title="Deployment details" trigger_label="Open wide dialog" size="xl" %}
<p class="text-base">Deployment summary.</p>
{% endwdj_component %}

Confirmation

Confirm deployment

Continue with this deployment?

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="dialog_confirmation" title="Confirm deployment" trigger_label="Confirm deployment" %}
<form method="dialog" class="grid gap-4"><p class="text-base">Continue with this deployment?</p>{% include "wdj/components/button.html" with label="Confirm" type="submit" variant="primary" only %}</form>
{% endwdj_component %}

Nested

Project

Details

Nested modal focus stays contained.

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="dialog_parent" title="Project" trigger_label="Open parent dialog" %}
{% wdj_component "wdj/components/dialog.html" id="dialog_child" title="Details" trigger_label="Open details" %}
<p class="text-base">Nested modal focus stays contained.</p>
{% endwdj_component %}
{% endwdj_component %}

Select in dialog

Project settings

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="audit-dialog-select" title="Project settings" trigger_label="Select in dialog" %}
{% include "wdj/components/select.html" with id="audit-dialog-control-select" options=audit_options label="Environment" mode="custom" only %}
{% endwdj_component %}

Combobox in dialog

Project settings

Loading suggestions
Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="audit-dialog-combobox" title="Project settings" trigger_label="Combobox in dialog" %}
{% include "wdj/components/combobox.html" with id="audit-dialog-control-combobox" options=audit_options label="Environment" only %}
{% endwdj_component %}

Alert dialog semantics

Confirm action

Review the confirmation and press Escape to cancel.

Show template
{% load wdj %}
{% wdj_component "wdj/components/dialog.html" id="audit-alert-dialog" title="Confirm action" trigger_label="Open alert dialog" alert=True close_on_backdrop=False %}
<p class="text-base">Review the confirmation and press Escape to cancel.</p>
{% endwdj_component %}

API Reference

Prop Type Default Description
string unset Stable unique DOM ID; important for HTMX targets and focus restoration.
string unset Title; pass the documented value shown in the examples.
string unset Description; pass the documented value shown in the examples.
string / HTML slot unset Trigger; pass the documented value shown in the examples.
string unset Combobox without endpoint: enable the button trigger and search inside its popup. Calendar: calendar trigger text.
string unset Searchable button: default control styling or ghost.
string unset Trigger size; pass the documented value shown in the examples.
string base Size; pass the documented value shown in the examples.
bool False Alert; pass the documented value shown in the examples.
string / HTML slot unset Footer; pass the documented value shown in the examples.
string / HTML slot unset Rich HTML supplied by the wdj_component block tag, rendered in an isolated context.
bool True Close on backdrop; pass the documented value shown in the examples.
bool False Dismiss disabled; pass the documented value shown in the examples.
string "" Class; pass the documented value shown in the examples.

Accessibility notes

Every interactive component keeps real semantics and keyboard support: native controls where possible, ARIA only where necessary, and a visible focus ring. See the Accessibility page for the shared contract.

Read the accessibility contract

Components

Components overview
AutocompleteFree-form input with local or HTMX-filtered suggestions.
BadgeSolid, tinted, outline and dot status labels.
BannerInline message bar with variants and optional action.
BreadcrumbsTrail navigation in two sizes.
ButtonVariants, sizes, shapes, icons and loading state.
ButtonGroupJoins a small set of tightly-coupled buttons into a single control (split buttons).
CheckboxSingle checkbox and indeterminate state.
ClipboardTextRead-only text field with a one-click copy-to-clipboard button.
Code / CodeHighlightedEscaped Pygments grammar highlighting, multiline tokens, line numbers, highlighted lines and localized copying.
CollapsibleComposable disclosure component for showing and hiding content.
Combobox / AutocompleteKumo-styled input/button triggers, search inside the popup, grouped local choices and debounced HTMX search.
CommandPaletteAccessible spotlight search overlay with Cmd+K keyboard shortcut.
DatePickerKumo-styled date and datetime popups; inline single, multiple and range calendars with bounds/presets.
DateRangePickerStyled popup or inline range calendar with bounds, presets and separately named form values.
DialogNative <dialog> modal with focus management.
DrawerEdge-anchored modal panel. LayerDialog has its own layered component.
DropdownMenuNative details menu with delegated keyboard navigation and dismissal.
EmptyEmpty-state placeholder with icon and action.
FieldLabel + description + error wrapper. Built into each control.
FlowDirected diagrams with branches, SVG connectors, custom anchors and responsive local scrolling.
GridResponsive CSS grid layout container with preset column configurations.
InlineCopyTextCompact borderless copy control for IDs and short values.
InputText field with label, description, leading/trailing icons.
InputAreaMulti-line textarea with auto-resize option.
InputGroupInput field with seamless prefix, suffix, and addon attachments.
LabelForm field label, optional marker and tooltip.
LayerCardCompound surface card with distinct primary and secondary layers.
LayerDialogLayered native modal with actions, forms, nested dialogs and pending states.
LinkInline, current and plain text links.
LoaderAnimated spinner in three sizes.
MenuBarCompact view selector using native radio semantics.
MeterProgress bar showing a measured value within a known range.
PaginationA page navigation component for navigating through paginated content.
PopoverAnchored popup with interactive content.
RadioRadio group, vertical and horizontal.
SelectKumo-styled Alpine dropdown with groups, rich options and multiple selection; native form values and fallback.
SensitiveInputPassword/secret input with reveal toggle and copy button.
SeparatorHorizontal / vertical rules with optional label.
SidebarRecursive navigation groups, account/zone views, search, loading, resize and full-screen mobile breadcrumbs.
SkeletonShimmer placeholder.
SliderInset single/range selection with vertical grips, value badges, endpoint labels and native keyboard/form behavior.
SurfaceBordered surface panel with header slot.
SwitchOn/off toggle in three sizes.
TableServer-driven table: sort, filter, select and paginate the full dataset.
Table of contentsPage section navigation tree with active link indicator.
TabsSegmented and underline tabs with a sliding indicator, responsive overflow and local Alpine or URL/HTMX state.
TagInputMulti-value badge input for tags and recipients.
TextHeading, body, secondary, success, error and mono text.
ToastyExpandable notification stack with variants, paused expiry and a live region.
ToolbarCompact grouped controls with shared borders, composed filters and keyboard arrow navigation.
TooltipHover and focus tooltip with grouped delays, Escape dismissal and viewport bounds.
↑ ↓ Navigate ↵ Select