Input
Implemented InputText field with label, description, leading/trailing icons.
Kumo reference: kumo-ui.com/components/input/
Presentation commands show demo feedback. Read the interaction guide to connect real actions.
Basic
We'll never share your email
Show template
{% load wdj %}
<div class="inline-flex max-w-full">
{% include "wdj/components/input.html" with name="input_basic" label="Email" type="email" placeholder="you@example.com" description="We'll never share your email" only %}
</div>
Label
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_label" label="Username" placeholder="Choose a username" only %}
</div>
Description
Use your work email.
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_description" label="Email" type="email" description="Use your work email." only %}
</div>
Required
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_required" label="Project name" required=True only %}
</div>
Disabled
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_disabled" label="Disabled field" value="Locked" disabled=True only %}
</div>
Read only
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_read_only" label="Resource ID" value="demo-123" readonly=True only %}
</div>
Error
Enter a valid email.
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_error" label="Email" value="invalid" error="Enter a valid email." only %}
</div>
Leading icon
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_leading_icon" label="Search" leading_icon="search" only %}
</div>
Trailing icon
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_trailing_icon" label="Verified value" trailing_icon="check" only %}
</div>
Password
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_password" label="Password" type="password" only %}
</div>
Number
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_number" label="Concurrency" type="number" min=0 max=100 value=0 only %}
</div>
Clearable
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_clearable" label="Search query" value="edge worker" clearable=True only %}
</div>
Small
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_small" label="Small field" size="sm" only %}
</div>
Large
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_large" label="Large field" size="lg" only %}
</div>
Extra small
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="input_extra_small" label="Compact field" size="xs" only %}
</div>
Optional field
Show template
{% load wdj %}
{% include "wdj/components/input.html" with id="audit-input-optional-field" name="workspace" optional=True label="Workspace name" only %}
Label tooltip
Use the name shown to other team members.
Show template
{% load wdj %}
{% include "wdj/components/input.html" with id="audit-input-label-tooltip" name="workspace" label_tooltip="Use the name shown to other team members." label="Workspace name" only %}
Bare error field
This value is unavailable.
Show template
{% load wdj %}
{% include "wdj/components/input.html" with id="audit-input-bare-error-field" name="workspace" error="This value is unavailable." aria_label="Workspace name" label="" only %}
Password manager isolation
Show template
{% load wdj %}
{% include "wdj/components/input.html" with id="audit-input-password-manager-isolation" name="workspace" type="password" attrs=audit_password_attrs label="Workspace name" only %}
Controlled local input
Show template
{% load wdj %}
<div x-data="{ name: 'Demo' }">{% include "wdj/components/input.html" with id="audit-controlled-input" label="Workspace" attrs=audit_input_model only %}<p class="mt-2 text-base" x-text="name"></p></div>
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | unset | Name; pass the documented value shown in the examples. |
| value | string | unset | Value; pass the documented value shown in the examples. |
| type | string | text | Type; pass the documented value shown in the examples. |
| size | string | base | Size; pass the documented value shown in the examples. |
| variant | string | component-specific | Variant; pass the documented value shown in the examples. |
| label | string | unset | Visible accessible label. Supply an explicit aria-label via attrs when the control is bare. |
| optional | bool | False | Optional; pass the documented value shown in the examples. |
| label_tooltip | string | unset | Label tooltip; pass the documented value shown in the examples. |
| description | string | unset | Description; pass the documented value shown in the examples. |
| error | string | unset | Validation message; implies error styling and accessible error association. |
| required | bool | False | Required; pass the documented value shown in the examples. |
| disabled | bool | False | Disabled; pass the documented value shown in the examples. |
| readonly | bool | False | Readonly; pass the documented value shown in the examples. |
| placeholder | string | unset | Placeholder; pass the documented value shown in the examples. |
| autocomplete | string | unset | Autocomplete; pass the documented value shown in the examples. |
| inputmode | string | unset | Inputmode; pass the documented value shown in the examples. |
| pattern | string | unset | Pattern; pass the documented value shown in the examples. |
| min | number | 0 (Slider/Meter) | Min; pass the documented value shown in the examples. |
| max | number | 100 (Slider/Meter) | Max; pass the documented value shown in the examples. |
| step | number | 1 (Slider) | Step; pass the documented value shown in the examples. |
| maxlength | string | unset | Maxlength; pass the documented value shown in the examples. |
| clearable | bool | False | Clearable; pass the documented value shown in the examples. |
| leading_icon | string | unset | Leading icon; pass the documented value shown in the examples. |
| trailing_icon | string | unset | Trailing icon; pass the documented value shown in the examples. |
| id | string | unset | Stable unique DOM ID; important for HTMX targets and focus restoration. |
| attrs | dict | {} | Dictionary of escaped native, HTMX or Alpine attributes. Literal Tailwind classes only. |
| field_class | string | unset | Field class; pass the documented value shown in the examples. |