f0rextasy

Field

Forms

About

A composable form field wrapper that pairs a label, input control, helper description and error message for building accessible form layouts.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";
import { Field } from "@/components/ui/field";

export default function FieldDemo() {
  return (
    <div className="w-full max-w-sm mx-auto p-6">
      <Field
        label="Username"
        htmlFor="username"
        required
        description="Choose a username for your account"
      >
        <input
          id="username"
          type="text"
          placeholder="e.g. johndoe"
          className="w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
        />
      </Field>
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    21
  • Stamp Seal

    Stamp Seal

    18
  • Network Graph

    Network Graph

    18
  • Board Checklist

    Board Checklist

    17
  • Navbar

    Navbar

    14
  • Running Order Timeline

    Running Order Timeline

    13
  • Milestone Chart

    Milestone Chart

    11
  • Empty State Card

    Empty State Card

    9

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19