Kodza

Text Field

A text field whose label folds up as you type. A button clears it, a check draws itself once it is valid, and the hint gives way to the error.

Forms No dependencies inputformvalidationlabel Added Oct 2026
/anim/text-field/ Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Restyle my contact form fields with Kodza Text Field.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-text-field.html
<div class="kodza-field">
  <label class="kodza-field__box">
    <input class="kodza-field__input" type="email" name="email" placeholder=" " autocomplete="email" required data-error="That does not look like an email.">
    <span class="kodza-field__label">Email</span>
    <svg class="kodza-field__check" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.5l3 3 6-7" pathLength="1"/></svg>
  </label>
  <button class="kodza-field__clear" type="button" tabindex="-1" aria-label="Clear the field"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5 5l6 6M11 5l-6 6"/></svg></button>
  <p class="kodza-field__note"><span class="kodza-field__hint">We only write when something ships.</span><span class="kodza-field__error" aria-live="polite"></span></p>
</div>

<div class="kodza-field">
  <label class="kodza-field__box">
    <span class="kodza-field__prefix">kodza.dev/</span>
    <input class="kodza-field__input" type="text" name="handle" placeholder=" " autocomplete="username" required pattern="[a-z0-9\-]+" minlength="2" data-error="Lowercase letters, digits and dashes only.">
    <span class="kodza-field__label">Username</span>
    <svg class="kodza-field__check" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.5l3 3 6-7" pathLength="1"/></svg>
  </label>
  <button class="kodza-field__clear" type="button" tabindex="-1" aria-label="Clear the field"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5 5l6 6M11 5l-6 6"/></svg></button>
  <p class="kodza-field__note"><span class="kodza-field__hint">Lowercase, no spaces. Like your variable names.</span><span class="kodza-field__error" aria-live="polite"></span></p>
</div>

<div class="kodza-field">
  <label class="kodza-field__box">
    <input class="kodza-field__input" type="text" name="plan" placeholder=" " value="Free, forever" disabled>
    <span class="kodza-field__label">Plan</span>
  </label>
  <p class="kodza-field__note"><span class="kodza-field__hint">There is no other plan.</span></p>
</div>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.

More like this

More in Forms