<scu-form>
<scu-input
name="vally"
validation="{
rule: 'alphanumeric',
message: 'Please enter a valid first name.',
allowDashes: true,
allowSpaces: false,
}"></scu-input>
<scu-member-profile></scu-member-profile>
<div>
<scu-input
name="minny"
title="homer of the flock of seagulls"
type="number"
min="1" max="4"></scu-input>
</div>
<scu-input
name="date"
title="king of spain"
type="date"
required></scu-input>
</scu-form>
data() => Promise<any>Type: Promise<any>
formData() => Promise<FormData>Type: Promise<FormData>
getFormControls() => Promise<SCUFormControl[]>Type: Promise<SCUFormControl[]>
submit() => Promise<void>Type: Promise<void>
graph TD;
scu-form --> scu-button
scu-button --> scu-icon
style scu-form fill:#f9f,stroke:#333,stroke-width:4px
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>
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')