Skip to content
wdj

Autocomplete

Implemented Input

Free-form input with local or HTMX-filtered suggestions.

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

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

Basic

Loading suggestions
Show template
{% load wdj %}
<div class="w-160 max-w-full">
  {% include "wdj/components/combobox.html" with freeform=True id="autocomplete_fruits" name="fruit" options=audit_fruits placeholder="Search fruits…" aria_label="Search fruits" only %}
</div>

Local filtering

Loading suggestions
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_local_filtering" name="q" label="Project" options=environments only %}
</div>

Initial options

Loading suggestions
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_initial_options" name="q" label="Project" options=environments endpoint="/combobox/options/" only %}
</div>

Selected value

Loading suggestions
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_selected_value" name="q" label="Project" options=environments value="staging" only %}
</div>

Empty result

Loading suggestions
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_empty_result" name="q" label="Project" options=environments only %}
</div>

Disabled

Loading suggestions
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_disabled" name="q" label="Project" options=environments disabled=True only %}
</div>

Error

Loading suggestions
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_error" name="q" label="Project" endpoint="/combobox/options/" error="Select a project." only %}
</div>

Required

Loading suggestions
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_required" name="q" label="Project" options=environments required=True only %}
</div>

Multiple selection

productionedge-workercloudflare
Loading suggestions
Show template
{% load wdj %}
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_multiple_selection" label="Projects" options=environments multiple=True name="projects" selected_values=initial_tags only %}

Description

Loading suggestions

Choose a deployment environment.

Show template
{% load wdj %}
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_description" label="Projects" options=environments name="q" description="Choose a deployment environment." only %}

Custom placeholder

Loading suggestions
Show template
{% load wdj %}
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_custom_placeholder" label="Projects" options=environments name="q" placeholder="Find a project" only %}

Disabled options

Loading suggestions
Show template
{% load wdj %}
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_disabled_options" label="Projects" name="q" options=environments only %}

Keyboard navigation

Loading suggestions
Show template
{% load wdj %}
{% include "wdj/components/combobox.html" with freeform=True id="autocomplete_keyboard_navigation" label="Projects" name="q" options=environments only %}

All sizes

Loading suggestions
Loading suggestions
Loading suggestions
Loading suggestions
Show template
{% load wdj %}
{% for size in audit_sizes %}{% include "wdj/components/combobox.html" with freeform=True id="audit-autocomplete-size-"|add:size name="q" label=size size=size options=audit_options only %}{% endfor %}

Grouped rich options

Loading suggestions
Show template
{% load wdj %}
{% include "wdj/components/combobox.html" with freeform=True id="audit-autocomplete-grouped" label="Environment" options=audit_options only %}

Controlled local value

Loading suggestions

Show template
{% load wdj %}
<div x-data="{ value: '' }">{% include "wdj/components/combobox.html" with freeform=True id="audit-autocomplete-controlled" label="Environment" options=audit_options attrs=audit_combo_model only %}<p class="mt-2 text-base" x-text="value"></p></div>

API Reference

Prop Type Default Description
string unset Stable unique DOM ID; important for HTMX targets and focus restoration.
string unset Name; pass the documented value shown in the examples.
string unset Value; pass the documented value shown in the examples.
string unset Visible accessible label. Supply an explicit aria-label via attrs when the control is bare.
string unset Aria label; pass the documented value shown in the examples.
string unset Description; pass the documented value shown in the examples.
string unset Validation message; implies error styling and accessible error association.
bool False Required; pass the documented value shown in the examples.
bool False Disabled; pass the documented value shown in the examples.
string unset Placeholder; pass the documented value shown in the examples.
string unset Application-owned server endpoint; dynamic HTMX fragments use no-store and Vary: HX-Request.
string 300ms Delay; pass the documented value shown in the examples.
number 1 Min chars; pass the documented value shown in the examples.
list[dict] [] Select: value/label/display_label/disabled/selected or groups with options. Combobox input: value/label/disabled/group/icon/description; button search also supports Select groups.
bool False Multiple; pass the documented value shown in the examples.
list[dict] unset Selected values; pass the documented value shown in the examples.
string unset Multiple Combobox: top (default) or right; right places the search beside chips and wraps on small screens.
string base Size; pass the documented value shown in the examples.
dict {} Escaped text overrides: search_placeholder, list_label, empty_message, required_message, remove_label, clear_selection and show_options. Explicit placeholder takes precedence over search_placeholder; remote empty messages come from the endpoint.
dict {} Dictionary of escaped native, HTMX or Alpine attributes. Literal Tailwind classes only.
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.
bool False Omit the dropdown trigger for an editable Autocomplete input. Filtering, keyboard selection and typed form values remain available.
string unset Field 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