bearnie

Checkbox

Toggle between checked and unchecked states.

Installation

npx bearnie add checkbox
npx bearnie add checkbox

Usage

import { Checkbox } from "@/components/bearnie/checkbox"
<Checkbox id="terms" />

Examples

Checked

Disabled

With description

Receive emails about new products and features.

Anatomy

  • Checkbox - A single form input element

Props

Checkbox

Prop Type Default Description
id string - Element ID for label association
name string - Form field name
checked boolean false Default checked state
disabled boolean false Disables the checkbox
required boolean false Makes the field required
value string - Form value when checked
class string - Additional CSS classes