blob: cb975d590158c13249c6afb59c50550ac57bf0ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
include icon.pug
mixin checkbox
-
let classes = {
'o-checkbox': true,
'o-checkbox--accent': attributes.accent,
}
label(class=classes)
input.o-checkbox__native(
type='checkbox'
class={ 'is-indeterminate': attributes.indeterminate }
)&attributes(attributes)
.o-checkbox__box
+icon('check')(class='o-checkbox__check-icon')
.o-checkbox__label
block
.o-checkbox__bg
|