summaryrefslogtreecommitdiffstats
path: root/tpl/objects/switch.pug
blob: 0c9c1abc1737fd4bf9c8c00fec8b7790c6ec9e98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
mixin switch
    -
        let classes = {
            'o-switch':         true,
            'o-switch--accent': attributes.accent,
        }

    label(class=classes)
        input.o-switch__native(type='checkbox')&attributes(attributes)
        .o-switch__indicator
        .o-switch__label
            block