TailGrids

Field

Forms

About

A React field component built with Tailwind CSS. Create form fields with labels, inputs, helper text, and error messages, using accessible, structured 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 { FieldDescription, FieldLabel, Input, TextField } from "@/components/ui/tailgrids-field"

export default function FieldPreview() {
  return (
    <div className="flex w-full max-w-sm flex-col items-center gap-10 p-4">
      <TextField className="w-full">
        <FieldLabel htmlFor="email">Email address</FieldLabel>
        <Input id="email" type="email" placeholder="you@example.com" />
        <FieldDescription>We&apos;ll never share your email.</FieldDescription>
      </TextField>
    </div>
  );
}

Dependencies

More by TailGrids

View all
  • Text Field

    Text Field

  • Spinner

    Spinner

  • Number Field

    Number Field

  • Breadcrumbs

    Breadcrumbs

  • Radio Button

    Radio Button

  • Social Login Buttons

    Social Login Buttons

  • Link

    Link

  • Textarea

    Textarea

More in Forms

View all
  • Form

    Form

    7
  • Login 2

    Login 2

    16
  • Contact Form

    Contact Form

    33
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    95
  • Premium Auth

    Premium Auth

    614
  • Onboarding Stepper

    Onboarding Stepper

    13
  • Authentication Card

    Authentication Card

    52