Checkbox

Display a custom Checkbox. Link the optional label by adding an id. Include other tags inside the label by using the label slot. Render an invalid state by adding the invalid property.

'label' => false,
'invalid' => false,
<x-checkbox value="something" label="Ich bin mit allem einverstanden" id="demo-checkbox-1" checked />
<x-checkbox value="something" label="Ich werde nicht klagen" id="demo-checkbox-2" invalid />
<x-checkbox value="something" id="demo-checkbox-3" checked>
    <x-slot:label>Ich habe <x-anchor icon-right="tabler-external-link" href="https://wikipedia.com">alles gelesen</x-anchor> <span class="text-text-subtle">(und bin total einverstanden)</span>.</x-slot>
</x-checkbox>