Wensity Labs

Field

Forms

About

An accessible wrapper that connects a label, help text, and error/success messaging to a single form control.

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 { Field, FieldControl } from "@/components/ui/field";

export default function FieldDemo() {
  return (
    <div className="flex w-full max-w-sm flex-col gap-6 bg-[var(--background)] p-6 text-[var(--foreground)]">
      <Field
        label="Email"
        required
        description="We'll only use this to send you account updates."
      >
        <FieldControl asChild>
          <input
            type="email"
            placeholder="you@company.com"
            className="h-9 w-full rounded-[var(--primitive-radius-control)] border border-[var(--border)] bg-[var(--surface)] px-3 text-sm text-[var(--foreground)] outline-none placeholder:text-[var(--primitive-text-placeholder)] focus:border-[var(--ring)] focus:ring-2 focus:ring-[var(--ring)]/30"
          />
        </FieldControl>
      </Field>
    </div>
  );
}

Dependencies

More by Wensity Labs

View all
  • Sidebar

    Sidebar

    230
  • Calendar

    Calendar

    171
  • Button

    Button

    76
  • Color Picker

    Color Picker

    62
  • Image Comparison Slider

    Image Comparison Slider

    55
  • AI Prompt Input

    AI Prompt Input

    50
  • Navigation Menu

    Navigation Menu

    36
  • Text Morphing

    Text Morphing

    35

More in Forms

View all
  • Premium Auth

    Premium Auth

    496
  • Login 2

    Login 2

    7
  • Login 1

    Login 1

    52
  • Authentication Card

    Authentication Card

    45
  • Contact Card

    Contact Card

    1K
  • Form

    Form

    16
  • Form

    Form

    136
  • Card Studio

    Card Studio

    41