solid-vue-components.auth-button

Button that lets the user log in or out with Solid.

Usage no npm install needed!

<script type="module">
  import solidVueComponentsAuthButton from 'https://cdn.skypack.dev/solid-vue-components.auth-button';
</script>

README

solid-vue-components.auth-button

Button that lets the user log in or out with Solid.

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.auth-button"></script>
<script>
new Vue({ el: '#app' })
</script>

In a module system

Install the component with NPM:

npm install solid-vue-components.auth-button

Then import the component:

import AuthButton from 'solid-vue-components.auth-button'

And either globally register it for use in all components:

Vue.component(AuthButton, 'solid-vue-components.auth-button')

or locally register it for use in an individual component:

export default {
components: { AuthButton }
}

Usage

<!-- No props or content are necessary. -->
<AuthButton />