Form

Input Checkbox

A control that allows the user to toggle between checked and not checked.

Overview

InputCheckbox combines a Checkbox control with a Label in one component, so you get a labelled checkbox without wiring them manually. Supports required indicator and fits forms and filter panels.

Key Business & UX Benefits

  • Single component for labelled checkbox reduces markup and errors.
  • Required indicator and accessible label association built in.
  • Matches Field and other form components for consistent layout.
  • Fits consent checkboxes, filters, and preference toggles.
Pro-Tip from Larry: Use InputCheckbox when you need a labelled checkbox so the label is always associated.

Usage

Combines Checkbox component with Label component.

InputCheckbox
<InputCheckbox label="Label" isRequired />

Feature List

  • Checkbox with integrated label
  • Required indicator support
  • Accessible label-to-control association
  • Consistent styling with other form controls

API Reference

PropDefaultType
idstring
checkedboolean | "indeterminate"
defaultCheckedfalseboolean
disabledfalseboolean
namestring
valueonstring
requiredfalseboolean
isRequiredfalseboolean

Whether the label's corresponding input is required or not.

sizesmall"small" | "medium"

The label's font size.

forIdstring

The id of the element that the label is for.

labelLabelstring
EventType
update:checked(event: "update:checked", value: boolean | "indeterminate" | undefined): void
Copyright © 2026 Laioutr GmbH