<scu-input></scu-input>
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
autocapitalize |
autocapitalize |
string |
undefined |
|
autocomplete |
autocomplete |
string |
undefined |
|
autocorrect |
autocorrect |
string |
undefined |
|
autofocus |
autofocus |
boolean |
undefined |
|
disabled |
disabled |
boolean |
false |
|
focused |
focused |
boolean |
false |
|
isFormElement |
is-form-element |
boolean |
true |
|
max |
max |
number |
undefined |
|
maxlength |
maxlength |
number |
undefined |
|
min |
min |
number |
undefined |
|
minlength |
minlength |
number |
undefined |
|
name |
name |
string |
undefined |
|
pattern |
pattern |
string |
undefined |
|
required |
required |
boolean |
undefined |
|
step |
step |
string |
undefined |
|
touched |
touched |
boolean |
false |
|
type |
type |
InputTypes |
InputTypes.text |
|
valid |
valid |
boolean |
true |
|
validateOn |
validate-on |
InputValidateOn.blur | InputValidateOn.focus | InputValidateOn.input |
InputValidateOn.blur |
|
value |
value |
string |
undefined |
validate() => Promise<ValidityState>Type: Promise<ValidityState>
Built with StencilJS
<script src="https://unpkg.com/scu-components-beta/dist/scu/scu.esm.js" type="module"></script>
<link href="https://unpkg.com/scu-components-beta/dist/scu/scu.css" rel="stylesheet">
<scu-button label='Submit' outline></scu-button>
brew install node
npm install --global http-server
http-server
npm install --save scu-components-beta
import Vue from 'vue'
import App from './App.vue'
import { applyPolyfills, defineCustomElements } from 'scu-components-beta/loader';
Vue.config.productionTip = false
// Tell Vue to ignore all components prefixed 'scu-'
Vue.config.ignoredElements = [/scu-\w*/];
// Bind the custom elements to the window object
applyPolyfills().then(() => {
defineCustomElements();
});
new Vue({
render: h => h(App),
}).$mount('#app')