Field

Field: Form field container uniting label, input control, and error validation message. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Field

npx motion-ui-skill add field

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • class-variance-authority
  • clsx
  • react
  • tailwind-merge

Source files

Field

Component from Motion UI: field

Install

npx motion-ui-skill add field

Dependencies

  • class-variance-authority
  • clsx
  • react
  • tailwind-merge

Usage

"use client";

import Field from "@/components/craft/field";

export function Example() {
  return (
    <div className="p-6">
      <Field />
    </div>
  );
}

Browse this category