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

    label(class=classes)
        input.o-radio__native(type='radio')&attributes(attributes)
        span.o-radio__circle
        span.o-radio__label
            block