[Minor] Allow label floating

This commit is contained in:
Robert von Burg 2022-05-06 11:35:53 +02:00
parent b2d0366b29
commit 4560b2ef67
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
2 changed files with 13 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "strolch-wc-debounced-input",
"description": "Strolch WebComponent Debounced Input",
"version": "0.1.2",
"version": "0.1.3",
"authors": [
"Robert von Burg"
],

View File

@ -12,6 +12,8 @@
--regular-color: lightgrey;
--disabled-color: darkgrey;
display: block;
--input-padding: 4px;
}
paper-input {
@ -20,7 +22,7 @@
--paper-input-container-input-color: var(--focus-color);
--paper-input-container-input: {
font-size: 18px;
padding: 4px;
padding: var(--input-padding);
};
--paper-input-container-underline-disabled: {
border-bottom-style: solid;
@ -52,7 +54,8 @@
<!-- Content -->
<paper-input id="inputElement"
no-label-float
label="[[label]]"
no-label-float="[[noLabelFloat]]"
placeholder="[[placeholder]]"
value="{{input}}"
disabled$="[[disabled]]"
@ -97,6 +100,13 @@
type: String,
value: "search"
},
label: {
type: String
},
noLabelFloat: {
type: Boolean,
value: true
},
disabled: {
type: Boolean,
value: false