Previews

No matching results.

Pages

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
<table class="table">
<thead>
<tr>
<th class="i-min"><span class="sr-only">Select</span></th>
<th>Name</th>
<th>Email</th>
<th>Role</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" name="row_1" id="row_1" value="1" class="input" aria-label="Select Sarah Chen" checked="checked" /></td>
<td class="font-medium">Sarah Chen</td>
<td>sarah.chen@example.com</td>
<td>Admin</td>
</tr>
<tr>
<td><input type="checkbox" name="row_2" id="row_2" value="1" class="input" aria-label="Select Marcus Rodriguez" /></td>
<td class="font-medium">Marcus Rodriguez</td>
<td>marcus.rodriguez@example.com</td>
<td>User</td>
</tr>
<tr>
<td><input type="checkbox" name="row_3" id="row_3" value="1" class="input" aria-label="Select Priya Patel" /></td>
<td class="font-medium">Priya Patel</td>
<td>priya.patel@example.com</td>
<td>User</td>
</tr>
<tr>
<td><input type="checkbox" name="row_4" id="row_4" value="1" class="input" aria-label="Select David Kim" /></td>
<td class="font-medium">David Kim</td>
<td>david.kim@example.com</td>
<td>Editor</td>
</tr>
</tbody>
</table>
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
<table class="table">
<thead>
<tr>
<th class="i-min"><span class="sr-only">Select</span></th>
<th>Name</th>
<th>Email</th>
<th>Role</th>
</tr>
</thead>
<tbody>
<tr>
<td><%= check_box_tag :row_1, 1, true, class: "input", aria: { label: "Select Sarah Chen" } %></td>
<td class="font-medium">Sarah Chen</td>
<td>sarah.chen@example.com</td>
<td>Admin</td>
</tr>
<tr>
<td><%= check_box_tag :row_2, 1, false, class: "input", aria: { label: "Select Marcus Rodriguez" } %></td>
<td class="font-medium">Marcus Rodriguez</td>
<td>marcus.rodriguez@example.com</td>
<td>User</td>
</tr>
<tr>
<td><%= check_box_tag :row_3, 1, false, class: "input", aria: { label: "Select Priya Patel" } %></td>
<td class="font-medium">Priya Patel</td>
<td>priya.patel@example.com</td>
<td>User</td>
</tr>
<tr>
<td><%= check_box_tag :row_4, 1, false, class: "input", aria: { label: "Select David Kim" } %></td>
<td class="font-medium">David Kim</td>
<td>david.kim@example.com</td>
<td>Editor</td>
</tr>
</tbody>
</table>
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
:where(.input) {
&:not([type="checkbox"], [type="radio"], [type="range"]) {
appearance: none;
background-color: var(--input-background, var(--color-surface));
block-size: var(--input-block-size, auto);
border: 1px solid var(--input-border-color, var(--color-border));
border-radius: var(--input-radius, var(--rounded-md));
box-shadow: var(--input-box-shadow, var(--shadow-xs));
font-size: var(--input-font-size, var(--text-sm));
inline-size: var(--input-inline-size, var(--size-full));
padding: var(--input-padding, .25rem .625rem);
}
&:is([type="checkbox"], [type="radio"]) {
accent-color: var(--input-accent-color, var(--color-primary));
block-size: var(--input-check-size, var(--size-4));
inline-size: var(--input-check-size, var(--size-4));
}
&:is([type="range"]) {
accent-color: var(--input-accent-color, var(--color-primary));
}
&:is(textarea[rows="auto"]) {
field-sizing: content;
max-block-size: calc(.875rem + var(--input-max-rows, 10lh));
min-block-size: calc(.875rem + var(--input-rows, 2lh));
}
&:is(select):not([multiple], [size]) {
background-image: url("chevron-down-zinc-500.svg");
background-position: center right var(--size-2);
background-repeat: no-repeat;
background-size: var(--size-4) auto;
}
> option {
padding: revert;
}
&::file-selector-button {
font-weight: var(--font-medium);
}
&:user-invalid {
border-color: var(--color-text-negative);
}
&:user-invalid + [feedback] {
display: unset;
}
&:focus-visible {
outline: var(--input-outline-size, 2px) solid var(--color-selected-dark);
}
&:disabled {
cursor: not-allowed; opacity: var(--opacity-50);
}
.field_with_errors & {
border-color: var(--color-text-negative);
}
}
.input--actor {
> input {
inline-size: 100%; outline: 0;
}
&:focus-within {
outline: var(--input-outline-size, 2px) solid var(--color-selected-dark);
}
}
Java Script is not required or multiple files are needed, check the notes.