summaryrefslogtreecommitdiffstats
path: root/tpl/objects/checkbox.pug
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-06 10:28:10 +0100
committerVolpeon <git@volpeon.ink>2022-02-06 10:28:10 +0100
commitea8b0bc19219f6f931e3be757c25743c2c828b2e (patch)
tree056af48e13f84e76cb9a26b8b76d28a4fe48d404 /tpl/objects/checkbox.pug
parentAdded radio (diff)
downloadiro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.tar.gz
iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.tar.bz2
iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.zip
Added checkbox and switch
Diffstat (limited to 'tpl/objects/checkbox.pug')
-rw-r--r--tpl/objects/checkbox.pug18
1 files changed, 18 insertions, 0 deletions
diff --git a/tpl/objects/checkbox.pug b/tpl/objects/checkbox.pug
new file mode 100644
index 0000000..874505b
--- /dev/null
+++ b/tpl/objects/checkbox.pug
@@ -0,0 +1,18 @@
1include icon.pug
2
3mixin checkbox
4 -
5 let classes = {
6 'o-checkbox': true,
7 'o-checkbox--accent': attributes.accent,
8 }
9
10 label(class=classes)
11 input.o-checkbox__native(
12 type='checkbox'
13 class={ 'is-indeterminate': attributes.indeterminate }
14 )&attributes(attributes)
15 .o-checkbox__box
16 +icon('check')(class='o-checkbox__check-icon')
17 .o-checkbox__label
18 block