From ea8b0bc19219f6f931e3be757c25743c2c828b2e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 6 Feb 2022 10:28:10 +0100 Subject: Added checkbox and switch --- tpl/objects/switch.pug | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tpl/objects/switch.pug (limited to 'tpl/objects/switch.pug') 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 @@ +mixin switch + - + let classes = { + 'o-switch': true, + 'o-switch--accent': attributes.accent, + } + + label(class=classes) + input.o-switch__native(type='checkbox')&attributes(attributes) + .o-switch__indicator + .o-switch__label + block -- cgit v1.2.3-54-g00ecf