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-inputComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-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
clsxlucide-reactreacttailwind-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 |