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>
);
}
















