Checkbox

Displays a native checkbox with April UI styling.

Component Code
<div class="flex items-center gap-2">
<april:checkbox id="terms" name="terms" />
<april:label for="terms">Accept terms and conditions</april:label>
</div>

The checkbox is a styled input. Use a label with a matching for and id so the complete control remains easy to use with a pointer or keyboard.

<april:checkbox id="updates" name="updates" value="1" />
<april:label for="updates">Send me product updates</april:label>

All native input attributes, including checked, disabled, required, and value, are passed through.

Publishing Views

Use the following command to publish this view:

php artisan april:publish checkbox
April UI keeps package views in `vendor/` by default. The command uses Laravel's vendor publishing system and copies overrides to `resources/views/vendor/april/components`. To publish all components, run:
php artisan april:publish --all
Review local overrides after an upgrade with `php artisan april:update --diff`.