Skip to main content
ALEXY LINK

Input 02

A structured inset-label input with permanent field context, responsive state feedback, and accessible validation behavior.

Requirements

HTML, CSS

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

Typography: Inter, with a system sans-serif fallback.

About Input 02

Input 02 is an input component in the Input Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 6, 2026.

  • input
  • inset label
  • inputs
  • structured input
  • profile

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: role alert; aria-describedby, aria-invalid.
  • HTML elements used: input, label, svg.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive CSS breakpoints at 380px.

React + TypeScript + Tailwind CSS

3 files: Input02.jsx, Input02.types.ts, Input02.tailwind.css

  • Configurable through 7 props: label, helperText, errorText, successText, showStatusIcon, containerClassName, ref.
  • Uses React hooks: useId, useEffect, useRef, useState.
  • ARIA in the markup: aria-invalid, aria-describedby.
  • HTML elements used: input, label, svg.
  • Includes a prefers-reduced-motion rule for its animation.
View all Input Components (10)