July 30, 2026 — The unofficial Laracon US Day 3. Get your ticket to The Vibes

You're viewing pre-release documentation — version 4.x is in beta

Features, APIs and behaviour may change before the stable release. View the stable version (3.x)

Checkbox


Overview#

A binary tick/untick control with an optional inline label. On iOS, renders as a tappable SF Symbol pair (checkmark.square.fill / square) — SwiftUI has no native checkbox primitive. On Android, renders as a Material3 Checkbox.

Per Model 3, check/border/label colors come from the theme — no per-instance overrides.

Copied!
<native:checkbox label="I agree to the terms" native:model="agreed" />

Props#

  • value - Current checked state (optional, boolean, default: false)
  • label - Inline label rendered to the right of the box (optional, string)
  • disabled - Disable the checkbox (optional, boolean, default: false)
  • a11y-label - Accessibility label (optional)
  • a11y-hint - Accessibility hint (optional)

Events#

  • @change - Livewire method called when toggled. Receives the new boolean value as a parameter

Two-way Binding#

Use native:model for automatic two-way binding with a Livewire boolean property.

Copied!
<native:checkbox label="Subscribe" native:model="subscribed" />

Examples#

Multiple options#

Copied!
<native:column class="w-full gap-2 p-4">
<native:checkbox label="Email notifications" native:model="emailNotifications" />
<native:checkbox label="SMS notifications" native:model="smsNotifications" />
<native:checkbox label="Push notifications" native:model="pushNotifications" />
</native:column>

Disabled#

Copied!
<native:checkbox label="Two-factor authentication (coming soon)" disabled />

Element#

Copied!
use Nativephp\NativeUi\Elements\Checkbox;
 
Checkbox::make()
->value($agreed)
->label('I agree to the terms')
->onChange('setAgreed');
  • make() - Create a checkbox
  • value(bool $checked) - Current state
  • label(string $label) - Inline label
  • disabled(bool $value = true) - Disable the checkbox
  • a11yLabel(string $value) - Accessibility label
  • a11yHint(string $value) - Accessibility hint
  • syncMode(string $mode), debounceMs(int $ms) - Set by native:model modifiers
  • onChange(string $method) - Livewire method invoked on toggle