0.2.2 • Published 8 years ago
daube-input-text v0.2.2
daube-input-text
A simple, material-influenced, vanilla js label and text input custom element.
Installation
npm install --save daube-input-textThis 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>Usage
Include the custom element in the html page
<daube-input-text></daube-input-text>Options
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"