TailGrids

Text Field

Text

About

A React text field component that allows users to enter plain text values. Used in forms to collect names, emails, search queries, and other short text inputs.

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

"use client"

import { FieldDescription, FieldLabel, Input, TextField } from "@/components/ui/tailgrids-text-field"
import { useState } from "react"

export default function TextFieldPreview() {
  const [value, setValue] = useState("");

  return (
    <div>
      <TextField value={value} onChange={setValue}>
        <FieldLabel>Full name</FieldLabel>
        <Input placeholder="Enter your full name" />
        <FieldDescription>
          Use your legal name as it appears on your ID.
        </FieldDescription>
      </TextField>
    </div>
  );
}

Dependencies

More by TailGrids

View all
  • Spinner

    Spinner

  • Number Field

    Number Field

  • Breadcrumbs

    Breadcrumbs

  • Radio Button

    Radio Button

  • Field

    Field

  • Social Login Buttons

    Social Login Buttons

  • Link

    Link

  • Textarea

    Textarea

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    16
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    135
  • Blur Reveal

    Blur Reveal

    401
  • Scroll Fill Headline

    Scroll Fill Headline

    67
  • Text Reveal

    Text Reveal

    411
  • Per Word Crossfade

    Per Word Crossfade

    20
  • Italic Sweep Scroll Text

    Italic Sweep Scroll Text

    77
  • Apple Hello Effect

    Apple Hello Effect

    692