Skip to content

Commit

Permalink
chore: add checkbox component
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroverts committed Nov 2, 2024
1 parent bbf0224 commit cb2169d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/views/components/forms/checkbox.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@props(['name', 'label', 'value' => null])

<div class="custom-control custom-checkbox">
<x-checkbox :name="$name" :value="$value"
{{ $attributes->class(['custom-control-input', 'is-invalid' => $errors->has($name)]) }} />

<x-forms.label :for="$name" :label="$label" class="custom-control-label" />
</div>

0 comments on commit cb2169d

Please sign in to comment.