Checkbox Field Input

Checkbox Field Input: Accessible checkbox with custom mark, inline label, hint, and error. Controlled or uncontrolled checked state. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Checkbox Field Input

npx motion-ui-skill add checkbox-field-input

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

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-merge

Source files

Checkbox Field Input

Accessible checkbox with custom mark, inline label, hint, and error. Controlled or uncontrolled checked state.

Install

npx motion-ui-skill add checkbox-field-input

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-merge

Usage

"use client";

import { CheckboxFieldInput } from "@/components/inputs/checkbox-field-input";

export function CheckboxFieldInputDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <CheckboxFieldInput />
    </div>
  );
}

API Reference

CheckboxFieldInput

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category