Skip to content
wdj

InputGroup

Implemented Input

Input field with seamless prefix, suffix, and addon attachments.

Kumo reference: kumo-ui.com/components/input-group/

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

Suffix

.workers.dev Loading
Show template
{% load wdj %}
<div class="w-72 max-w-full" x-data="{ status: 'success', timer: null }" @input="clearTimeout(timer); status = $event.target.value ? 'loading' : 'idle'; if (status === 'loading') timer = setTimeout(() => status = 'success', 1500)">
  {% wdj_component "wdj/components/input_group.html" %}
    <input name="group_suffix" id="group_suffix" value="wdj" maxlength="20" aria-label="Worker subdomain" class="min-w-0 flex-1 bg-transparent px-3 text-base text-kumo-default focus:outline-none">
    <span class="shrink-0 text-base text-kumo-subtle">.workers.dev</span>
    <span class="flex w-9 shrink-0 items-center justify-center" x-show="status !== 'idle'">
      <span x-show="status === 'loading'" x-cloak>{% include "wdj/components/loader.html" with size='sm' only %}</span>
      <span x-show="status === 'success'" class="text-kumo-success">{% wdj_icon 'circle-check' class='size-4' %}</span>
    </span>
  {% endwdj_component %}
</div>

Prefix

https://
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input_group.html" with name="group_prefix" label="Website" prefix="https://" only %}
</div>

Both sides

$ USD
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input_group.html" with name="group_both_sides" label="Amount" prefix="$" suffix="USD" type="number" only %}
</div>

Leading icon

Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input_group.html" with name="group_leading_icon" label="Search" prefix_icon="search" only %}
</div>

Trailing icon

Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input_group.html" with name="group_trailing_icon" label="Status" suffix_icon="check" only %}
</div>

Error

.example.com
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input_group.html" with name="group_error" label="Domain" suffix=".example.com" error="Name is already in use." only %}
</div>

Disabled

.example.com
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input_group.html" with name="group_disabled" label="Managed hostname" value="production" suffix=".example.com" disabled=True only %}
</div>

Small

@
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input_group.html" with name="group_small" label="Small group" prefix="@" size="sm" only %}
</div>

Attached button

Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% wdj_component "wdj/components/input_group.html"  %}
<label class="wdj-sr-only" for="group_search">Search resources</label><input id="group_search" name="query" class="min-w-0 flex-1 bg-transparent px-3 text-base focus:outline-none" placeholder="Search resources">{% include "wdj/components/button.html" with label="Search" icon="search" class="rounded-none" only %}
{% endwdj_component %}
</div>

Attached select

Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% wdj_component "wdj/components/input_group.html"  %}
<label class="wdj-sr-only" for="group_protocol">Protocol</label><select id="group_protocol" class="h-9 bg-kumo-fill px-2 text-base"><option>https://</option><option>http://</option></select><label class="wdj-sr-only" for="group_host">Hostname</label><input id="group_host" class="min-w-0 flex-1 bg-transparent px-3 text-base focus:outline-none" placeholder="example.com">
{% endwdj_component %}
</div>

Keyboard hint

⌘K
Show template
{% load wdj %}
{% wdj_component "wdj/components/input_group.html"  %}
<input id="audit-kbd-input" aria-label="Search projects" class="min-w-0 flex-1 bg-transparent px-3 text-base focus:outline-none" placeholder="Search projects"><kbd class="mr-2 rounded bg-kumo-fill px-1.5 text-xs">⌘K</kbd>
{% endwdj_component %}

Loading indicator

Loading
Show template
{% load wdj %}
{% wdj_component "wdj/components/input_group.html"  %}
<input aria-label="Loading search" class="min-w-0 flex-1 bg-transparent px-3 text-base" value="Searching…">{% include "wdj/components/loader.html" with size="sm" only %}
{% endwdj_component %}

Inline suffix

.example
Show template
{% load wdj %}
{% wdj_component "wdj/components/input_group.html"  %}
<input aria-label="Project address" class="min-w-0 flex-1 bg-transparent pl-3 text-base" value="demo"><span class="pr-3 text-base text-kumo-subtle">.example</span>
{% endwdj_component %}

Tooltip action

Search documentation
Show template
{% load wdj %}
{% wdj_component "wdj/components/input_group.html"  %}
<input aria-label="Documentation search" class="min-w-0 flex-1 bg-transparent px-3 text-base" placeholder="Search">{% wdj_component "wdj/components/tooltip.html" content="Search documentation" %}
{% include "wdj/components/button.html" with label="Search" size="sm" only %}
{% endwdj_component %}
{% endwdj_component %}

API Reference

Prop Type Default Description
string unset Aria label; pass the documented value shown in the examples.
string unset Name; pass the documented value shown in the examples.
string unset Value; pass the documented value shown in the examples.
string text Type; 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 Description; pass the documented value shown in the examples.
string unset Validation message; implies error styling and accessible error association.
string unset Prefix; pass the documented value shown in the examples.
string unset Suffix; pass the documented value shown in the examples.
string unset Prefix icon; pass the documented value shown in the examples.
string unset Suffix icon; pass the documented value shown in the examples.
string unset Placeholder; pass the documented value shown in the examples.
string base Size; pass the documented value shown in the examples.
string component-specific Variant; pass the documented value shown in the examples.
bool False Disabled; pass the documented value shown in the examples.
bool False Readonly; pass the documented value shown in the examples.
bool False Required; pass the documented value shown in the examples.
string unset Stable unique DOM ID; important for HTMX targets and focus restoration.
string / HTML slot unset Rich HTML supplied by the wdj_component block tag, rendered in an isolated context.
dict {} Dictionary of escaped native, HTMX or Alpine attributes. Literal Tailwind classes only.
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