diff options
Diffstat (limited to 'tpl/objects/switch.pug')
-rw-r--r-- | tpl/objects/switch.pug | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tpl/objects/switch.pug b/tpl/objects/switch.pug new file mode 100644 index 0000000..0c9c1ab --- /dev/null +++ b/tpl/objects/switch.pug | |||
@@ -0,0 +1,12 @@ | |||
1 | mixin switch | ||
2 | - | ||
3 | let classes = { | ||
4 | 'o-switch': true, | ||
5 | 'o-switch--accent': attributes.accent, | ||
6 | } | ||
7 | |||
8 | label(class=classes) | ||
9 | input.o-switch__native(type='checkbox')&attributes(attributes) | ||
10 | .o-switch__indicator | ||
11 | .o-switch__label | ||
12 | block | ||