diff options
Diffstat (limited to 'tpl/objects/text-field.pug')
| -rw-r--r-- | tpl/objects/text-field.pug | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tpl/objects/text-field.pug b/tpl/objects/text-field.pug new file mode 100644 index 0000000..9bbe0a1 --- /dev/null +++ b/tpl/objects/text-field.pug | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | include icon.pug | ||
| 2 | |||
| 3 | mixin text-field | ||
| 4 | - | ||
| 5 | let classes = { | ||
| 6 | 'o-text-field': true, | ||
| 7 | 'is-invalid': attributes.invalid, | ||
| 8 | 'is-disabled': attributes.disabled, | ||
| 9 | } | ||
| 10 | |||
| 11 | div(class=classes) | ||
| 12 | input(class='o-text-field__input')&attributes(attributes) | ||
| 13 | .o-text-field__bg | ||
