jdavisson87

Text Field

Forms

About

An accessible labeled text input with support text and validation error messaging, built on React Aria for forms.

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

Code

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

Usage.tsx

import { TextField } from "@/components/ui/text-field";

export default function TextFieldDisabledDemo() {
  return (
    <div className="flex min-h-[400px] w-full items-center justify-center bg-bg p-8">
      <TextField
        label="Email"
        placeholder="you@example.com"
        isDisabled
        defaultValue="locked@example.com"
        className="w-72"
      />
    </div>
  );
}

Dependencies

More by jdavisson87

View all
  • Status Badge

    Status Badge

    5
  • Switch

    Switch

    2

More in Forms

View all
  • Form

    Form

    7
  • Contact Form

    Contact Form

    32
  • Login 2

    Login 2

    16
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    94
  • Paper Plane

    Paper Plane

    80
  • Premium Auth

    Premium Auth

    613
  • Authentication Card

    Authentication Card

    52