diff options
author | Volpeon <git@volpeon.ink> | 2022-02-06 10:28:10 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-02-06 10:28:10 +0100 |
commit | ea8b0bc19219f6f931e3be757c25743c2c828b2e (patch) | |
tree | 056af48e13f84e76cb9a26b8b76d28a4fe48d404 /tpl/objects/switch.pug | |
parent | Added radio (diff) | |
download | iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.tar.gz iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.tar.bz2 iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.zip |
Added checkbox and switch
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 | ||