- Getting Started
- The Basics
- Concepts
- SuperNative
-
EDGE Components
- Introduction
- Activity Indicator
- Badge
- Bottom Navigation
- Bottom Sheet
- Button
- Button Group
- Canvas
- Carousel
- Checkbox
- Chip
- Column
- Divider
- Gesture Area
- Icon
- Icons
- Image
- Layout & Styling
- List
- Menus
- Modal
- Pressable
- Progress Bar
- Radio Group
- Row
- Scroll View
- Select
- Shapes
- Side Navigation
- Slider
- Spacer
- Stack
- Tab Row
- Text
- Text Input
- Toggle
- Top Bar
- Virtual List
- Web View
- Plugins
- Testing
- Architecture
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 checkboxvalue(bool $checked)- Current statelabel(string $label)- Inline labeldisabled(bool $value = true)- Disable the checkboxa11yLabel(string $value)- Accessibility labela11yHint(string $value)- Accessibility hintsyncMode(string $mode),debounceMs(int $ms)- Set bynative:modelmodifiersonChange(string $method)- Livewire method invoked on toggle
Plugin Dev Kit
Build native plugins with
Claude Code
Learn More
NativePHP Ultra
All NativePHP plugins, teams & priority support from
$35/mo
Learn More
The Vibes
The unofficial Laracon US
Day 3
Grab Your Spot
Only 100 tickets!
The Masterclass
Go from zero to
published app
in no time
in no time
Learn More
Early Bird Pricing