<scu-button label="Submit" onclick="alert('coming from the outside')"></scu-button>
<scu-button label="Submit" outline></scu-button>
<scu-button label="Submit" grey></scu-button>
<scu-button label="Submit" link></scu-button>
<scu-button label="Submit" icon="relationship"></scu-button>
<scu-button label="Submit" icon="relationship" outline></scu-button>
<scu-button label="Submit" icon="relationship" icon_only></scu-button>
<scu-button label="Submit" icon="relationship" icon_only outline></scu-button>
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
disabled |
disabled |
boolean |
false |
|
grey |
grey |
boolean |
false |
|
icon |
icon |
string |
undefined |
|
icon_only |
icon_only |
boolean |
false |
|
label |
label |
string |
"!No Label Sent!" |
|
link |
link |
boolean |
false |
|
outline |
outline |
boolean |
false |
|
type |
type |
ButtonTypes.grey | ButtonTypes.link | ButtonTypes.outline | ButtonTypes.primary |
ButtonTypes.primary |
graph TD;
scu-button --> scu-icon
scu-form --> scu-button
style scu-button fill:#f9f,stroke:#333,stroke-width:4px
Built with StencilJS
<scu-button label="Submit" icon="relationship"></scu-button> <scu-button label="Submit" icon="insights"></scu-button> <scu-button label="Submit" icon="error"></scu-button>
<scu-button label="Submit" disabled></scu-button> <scu-button label="Submit" disabled outline></scu-button> <scu-button label="Submit" disabled grey></scu-button> <scu-button label="Submit" disabled link></scu-button> <scu-button label="Submit" disabled icon="relationship"></scu-button> <scu-button label="Submit" disabled icon="relationship" outline></scu-button> <scu-button label="Submit" disabled icon="relationship" outline icon_only></scu-button>
<scu-button></scu-button> <scu-button outline></scu-button> <scu-button grey></scu-button> <scu-button link></scu-button> <scu-button icon="relationship"></scu-button> <scu-button icon="relationship" outline></scu-button>
<scu-button label='A Really Long Label That Should Make Button Wide'></scu-button> <scu-button label='A Really Long Label That Should Make Button Wide' outline></scu-button> <scu-button label='A Really Long Label That Should Make Button Wide' grey></scu-button> <scu-button label='A Really Long Label That Should Make Button Wide' link></scu-button> <scu-button label='A Really Long Label That Should Make Button Wide' icon="relationship"></scu-button> <scu-button label='A Really Long Label That Should Make Button Wide' icon="relationship" outline></scu-button>
<scu-button label="Submit" style='width: 300px;'></scu-button> <scu-button label="Submit" outline style='width: 300px;'></scu-button> <scu-button label="Submit" grey style='width: 300px;'></scu-button> <scu-button label="Submit" link style='width: 300px;'></scu-button> <scu-button label="Submit" icon="relationship" style='width: 300px;'></scu-button> <scu-button label="Submit" icon="relationship" style='width: 300px;' outline></scu-button>
<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')