Phara UI v2.x

Checkbox

A form element that allows users to select one or more options from a list.

Basic

Simple checkbox with a label.

Blade
<x-ui::checkbox label="Accept terms and conditions" />
Variants

Different color options for different semantic meanings.

Blade
<x-ui::checkbox variant="default" label="Default" checked />
<x-ui::checkbox variant="success" label="Success" checked />
<x-ui::checkbox variant="warning" label="Warning" checked />
<x-ui::checkbox variant="danger" label="Danger" checked />
With Description

Add a description to provide more information about the option.

Blade
<x-ui::checkbox 
    label="Email Notifications" 
    description="Receive an email when someone replies to your post." 
    checked 
/>
Disabled

Prevent user interaction with the checkbox.

Blade
<x-ui::checkbox label="Disabled unchecked" disabled />
<x-ui::checkbox label="Disabled checked" checked disabled />