Sean Hello

ReUI Field

Component 1

About

ReUI Field with the first 10 official ReUI examples, preserved from the MIT-licensed source registry.

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

Code

How ReUI Field is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Button } from "@/components/ui/reui-field-utils/button"
import { Checkbox } from "@/components/ui/reui-field-utils/checkbox"
import {
  Field,
  FieldContent,
  FieldDescription,
  FieldError,
  FieldGroup,
  FieldLabel,
  FieldSeparator,
  FieldTitle,
} from "@/components/ui/reui-field"
import { Input } from "@/components/ui/reui-field-utils/input"
import { Switch } from "@/components/ui/reui-field-utils/switch"
import { Textarea } from "@/components/ui/reui-field-utils/textarea"

export default function Pattern() {
  return (
    <div className="mx-auto w-full max-w-xs">
      <FieldGroup>
        <Field>
          <FieldLabel htmlFor="settings-name">
            Display Name <span className="text-destructive">*</span>
          </FieldLabel>
          <Input id="settings-name" defaultValue="Alex Johnson" />
          <FieldDescription>This is your public display name.</FieldDescription>
        </Field>
        <Field data-invalid>
          <FieldLabel htmlFor="settings-slug">URL Slug</FieldLabel>
          <Input id="settings-slug" defaultValue="alex johnson" />
          <FieldError>
            Slug can only contain lowercase letters, numbers, and hyphens.
          </FieldError>
        </Field>
        <Field>
          <div className="flex items-center justify-between">
            <FieldLabel htmlFor="settings-bio">Bio</FieldLabel>
            <span className="text-muted-foreground text-xs">24/160</span>
          </div>
          <Textarea
            id="settings-bio"
            defaultValue="Software engineer & open source contributor."
            className="min-h-[80px]"
          />
          <FieldDescription>
            Brief description for your profile.
          </FieldDescription>
        </Field>
        <FieldSeparator />
        <Field orientation="horizontal">
          <FieldContent>
            <FieldTitle>Email Notifications</FieldTitle>
            <FieldDescription>
              Receive emails about account activity.
            </FieldDescription>
          </FieldContent>
          <Switch id="settings-email-notif" defaultChecked />
        </Field>
        <Field orientation="horizontal">
          <FieldContent>
            <FieldTitle>Marketing Emails</FieldTitle>
            <FieldDescription>
              Receive emails about new features and tips.
            </FieldDescription>
          </FieldContent>
          <Switch id="settings-marketing" />
        </Field>
        <FieldSeparator />
        <Field orientation="horizontal">
          <Checkbox id="settings-terms" />
          <FieldContent>
            <FieldTitle>Terms of Service</FieldTitle>
            <FieldDescription>
              I agree to the <a href="#">Terms of Service</a> and{" "}
              <a href="#">Privacy Policy</a>.
            </FieldDescription>
          </FieldContent>
        </Field>
        <Button className="w-full">Save Changes</Button>
      </FieldGroup>
    </div>
  )
}

Dependencies

More by Sean Hello

View all
  • 3D Testimonails

    3D Testimonails

    3.3K
  • Line Charts 9

    Line Charts 9

    637
  • Alert

    Alert

    492
  • Area Charts 1

    Area Charts 1

    385
  • Line Charts 6

    Line Charts 6

    384
  • Scroll Area

    Scroll Area

    376
  • Area Charts 2

    Area Charts 2

    317
  • Navigation Menu

    Navigation Menu

    306