ai 2

Field Validation

Forms 3

About

A set of styled form-field wrappers (valid, invalid, warning, hint and live) that pair a label and input with a validation message wired through aria-describedby and aria-invalid.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Field Validation to your project and fits it to your theme.

Code

How Field Validation is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  ValidField,
  InvalidField,
  WarningField,
  HintField,
  LiveField,
} from "@/components/ui/field-validation";

export default function FieldValidationDemo() {
  return (
    <div className="flex flex-col gap-8 p-8">
      <ValidField />
      <InvalidField />
      <WarningField />
      <HintField />
      <LiveField />
    </div>
  );
}

Dependencies

More by ai 2

View all
  • Ripple Buttons

    Ripple Buttons

    31
  • Styled Toggle Switches

    Styled Toggle Switches

    14
  • Styled Progress Bars

    Styled Progress Bars

    14
  • Styled Badges

    Styled Badges

    10
  • OTP Pin Input

    OTP Pin Input

    8
  • Particle Toggles

    Particle Toggles

    7
  • Input Group Glass

    Input Group Glass

    6
  • File Input

    File Input

    6

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 2

    Login 2

    7
  • Authentication Card

    Authentication Card

    47
  • Login 1

    Login 1

    52
  • Contact Card

    Contact Card

    1K
  • Login Form

    Login Form

    6
  • Form

    Form

    16
  • Book A Demo 3

    Book A Demo 3

    83