Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<fieldset class="form-field-wrapper">
<legend class="block font-medium text-gray-700 mb-2 text-sm">
Interests
</legend>
<div class="flex flex-col gap-2.5">
<div class="form-field-wrapper">
<div class="flex items-start flex-row gap-2.5">
<input type="checkbox" id="interests_0" name="interests[]" value="Sports" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" />
<label for="interests_0" class="select-none cursor-pointer text-gray-700 text-sm">
Sports
</label>
</div>
</div>
<div class="form-field-wrapper">
<div class="flex items-start flex-row gap-2.5">
<input type="checkbox" id="interests_1" name="interests[]" value="Music" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" />
<label for="interests_1" class="select-none cursor-pointer text-gray-700 text-sm">
Music
</label>
</div>
</div>
<div class="form-field-wrapper">
<div class="flex items-start flex-row gap-2.5">
<input type="checkbox" id="interests_2" name="interests[]" value="Art" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" />
<label for="interests_2" class="select-none cursor-pointer text-gray-700 text-sm">
Art
</label>
</div>
</div>
<div class="form-field-wrapper">
<div class="flex items-start flex-row gap-2.5">
<input type="checkbox" id="interests_3" name="interests[]" value="Technology" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" />
<label for="interests_3" class="select-none cursor-pointer text-gray-700 text-sm">
Technology
</label>
</div>
</div>
</div>
</fieldset>
1
2
3
4
5
render BetterUi::Forms::CheckboxGroupComponent.new(
name: "interests",
collection: [ "Sports", "Music", "Art", "Technology" ],
legend: "Interests"
)