summaryrefslogtreecommitdiffstats
path: root/tpl/objects/switch.pug
blob: 6f83fdcf4473b3bcc257a5ce1dc100a359d6acd5 (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)
        span.o-switch__indicator
        span.o-switch__label
            block