redrob-labs

Name Input

Forms

About

A single text field for capturing a person's full name, with optional extra fields for a name in their own script and a preferred name, instead of splitting a name into first/last.

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

Code

How Name Input 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 NameInput, { NameValue } from "@/components/ui/name-input";

export default function NameInputDemo() {
  const [value, setValue] = React.useState<NameValue>({ full: "" });

  return (
    <div className="flex w-full max-w-sm flex-col gap-4 bg-background p-6 text-foreground">
      <NameInput value={value} onChange={(next) => setValue(next)} />
    </div>
  );
}

More by redrob-labs

View all
  • Alert

    Alert

    17
  • Schedule Picker

    Schedule Picker

    15
  • Hero Section

    Hero Section

    7
  • Switch

    Switch

    4
  • Status Card

    Status Card

    4
  • Meter

    Meter

    2
  • Memory Scope

    Memory Scope

    2
  • Accordion

    Accordion

    2

More in Forms

View all
  • Login 1

    Login 1

    52
  • Premium Auth

    Premium Auth

    492
  • Contact Card

    Contact Card

    1K
  • Form

    Form

    136
  • Login 2

    Login 2

    7
  • Login Form

    Login Form

    6
  • Authentication Card

    Authentication Card

    45
  • Card Studio

    Card Studio

    41