0.0.5 • Published 5 years ago

solid-vue-components.login-button v0.0.5

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

solid-vue-components.login-button

A component that displays a solid login button.

Installation

Directly in the browser

Drop the component in with a <script> tag alongside Vue:

<div id="app">
<!-- ... use component here ... -->
</div>

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/solid-vue-components.login-button"></script>
<script>
new Vue({ el: '#app' })
</script>

In a module system

Install the component with NPM:

npm install solid-vue-components.login-button

Then import the component:

import LoginButton from 'solid-vue-components.login-button'

And either globally register it for use in all components:

Vue.component(LoginButton, 'solid-vue-components.login-button')

or locally register it for use in an individual component:

export default {
components: { LoginButton }
}

Usage

<!-- No props or content are necessary. -->
<LoginButton v-on:onSuccess="handleLogin" />
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago