add webln test page

This commit is contained in:
fsociety
2024-09-10 20:29:50 +02:00
parent 0260a61e7e
commit 2077cc9941
509 changed files with 5167 additions and 2240 deletions

View File

@@ -0,0 +1,42 @@
<div>
<div class="flex items-center">
@if ($leftLabel)
<x-dynamic-component
:component="WireUi::component('label')"
:for="$id"
class="mr-2"
:label="$leftLabel"
:has-error="$errors->has($name)"
/>
@endif
<label for="{{ $id }}" tabindex="-1" class="group relative flex items-center select-none">
<input {{ $attributes->merge([
'name' => $name,
'id' => $id,
'class' => $circleClasses(),
]) }}
type="checkbox"
/>
<div class="{{ $backgroundClasses($errors->has($name)) }}"></div>
</label>
@if ($label)
<x-dynamic-component
:component="WireUi::component('label')"
:for="$id"
class="ml-2"
:label="$label"
:has-error="$errors->has($name)"
/>
@endif
</div>
@if ($name)
<x-dynamic-component
:component="WireUi::component('error')"
:name="$name"
/>
@endif
</div>