A simple, material-influenced, vanilla js label and text input custom element.
npm install --save daube-input-text
This custom element requires the webcomponents-lite polyfill in order to work on all browsers
Please see webcomponents.org for more information about Polyfills
Import the custom element by:
<script src="./node_modules/daube-input-text/daube-input-text-compiled.js"></script>
Include the custom element in the html page
<daube-input-text></daube-input-text>
The following options are available manually or programatically within the opening daube-input-text html tag:
- label -
label="your desired label name"
- disabled -
disabled
- name -
name="your desired name"
- required -
required
- value -
value="Your desired default text"
- maxlength -
maxlength="20"