Form Checkbox
Form checkbox component.
Checkbox, Customization Blocks
Checkbox Group, Customization Blocks
<x-checkbox />
<x-checkbox label="Receive Alert" /> <x-checkbox label="Receive Alert" position="left" />
<x-checkbox label="Readonly" checked readonly /><x-checkbox label="Disabled" checked disabled />
<x-checkbox> <x-slot:label> I agree to the <a href="#">terms and conditions</a> </x-slot:label></x-checkbox>
<x-checkbox> <x-slot:label left> I agree to the <a href="#">terms and conditions</a> </x-slot:label></x-checkbox>
<x-checkbox> <x-slot:label> Align on Middle </x-slot:label></x-checkbox> <x-checkbox> <x-slot:label start> Align on Start </x-slot:label></x-checkbox>
<x-checkbox xs /><x-checkbox sm /><x-checkbox md /><x-checkbox lg />
<x-checkbox label="Primary" /><x-checkbox color="secondary" label="Secondary" /><x-checkbox color="slate" label="Slate" /><x-checkbox color="gray" label="Gray" /><x-checkbox color="zinc" label="Zinc" /><x-checkbox color="neutral" label="Neutral" /><x-checkbox color="stone" label="Stone" /><x-checkbox color="red" label="Red" /><x-checkbox color="orange" label="Orange" /><x-checkbox color="amber" label="Amber" /><x-checkbox color="yellow" label="Yellow" /><x-checkbox color="lime" label="Lime" /><x-checkbox color="green" label="Green" /><x-checkbox color="emerald" label="Emerald" /><x-checkbox color="teal" label="Teal" /><x-checkbox color="cyan" label="Cyan" /><x-checkbox color="sky" label="Sky" /><x-checkbox color="blue" label="Blue" /><x-checkbox color="indigo" label="Indigo" /><x-checkbox color="violet" label="Violet" /><x-checkbox color="purple" label="Purple" /><x-checkbox color="fuchsia" label="Fuchsia" /><x-checkbox color="pink" label="Pink" /><x-checkbox color="rose" label="Rose" /><x-checkbox color="mauve" label="Mauve" /><x-checkbox color="olive" label="Olive" /><x-checkbox color="mist" label="Mist" /><x-checkbox color="taupe" label="Taupe" /><x-checkbox color="black" label="Black" />
<x-checkbox.group label="Features" :options="[ ['label' => 'Newsletter', 'value' => 'newsletter', 'description' => 'Weekly digest'], ['label' => 'Alerts', 'value' => 'alerts', 'description' => 'Real time notifications'], ['label' => 'Reports', 'value' => 'reports', 'description' => 'Monthly summary'],]" />
An option to display the group in different formats.
<x-checkbox.group list :options="$features" /><x-checkbox.group card :options="$features" /><x-checkbox.group panel :options="$features" /><x-checkbox.group inline :options="$features" />
<x-checkbox.group card :columns="3" :options="$features" />
<x-checkbox.group position="right" :options="$features" />
<x-checkbox.group xs :options="$features" /><x-checkbox.group sm :options="$features" /><x-checkbox.group md :options="$features" /><x-checkbox.group lg :options="$features" />
<x-checkbox.group color="green" :options="$features" />
An option to remaps the source keys with the same syntax used by select styled.
<x-checkbox.group select="label:name|value:id|description:note" :options="$features" />
An option to replaces the body of every item.
<x-checkbox.group card :options="$addons"> @interact('option', $option) <span class="font-semibold">{{ $option['name'] }}</span> <span class="font-mono">${{ $option['price'] }}</span> @endinteract</x-checkbox.group>