1.0.3 • Published 4 years ago
@slickteam/slick-login v1.0.3
\
Description
An authentication card that return's an event with a payload that contains both input's content. The web component was made using lit element.
Installation
npm i @slickteam/slick-loginUsage
- Html vanilla
<script type="module">
import '@slickteam/slick-login';
</script>
<slick-login></slick-login>- Vue.js
<template>
<div>
<h1>Test Page</h1>
<slick-login
:imgSrc="image"
></slick-login>
</div>
</template>
<script>
import '@slickteam/slick-login';
import image from './path/to/image/file'
export default {
name: 'TestPage',
data() {
return {
image: image,
}
},
}
</script>
<style scoped>
/* Put CSS */
</style>Template
<slick-login
showConsoleHelp
firstLabel="First input's label"
secondLabel="Second input's label"
buttonText="Button's text"
hideLogo
imgSrc
></slick-login>Properties
| Name | Type | Description |
|---|---|---|
showConsoleHelp | Boolean | Show hints about event and payload status |
firstLabel | String | Define label text of the first input |
secondLabel | String | Define label text of the second input |
buttonText | String | Define button's text |
hideLogo | Boolean | Hide the logo header div if not needed |
imgSrc | String | The path to the image that will be displayed as the header |
Events
| Name | Description |
|---|---|
slick-connect | The event emitted when the button is clicked, it returns the content of both inputs |
Development
Demoing with Storybook
To run a local instance of Storybook for your component, run
npm run storybookTo build a production version of Storybook, run
npm run storybook:build1.0.3
4 years ago
1.0.2
4 years ago
1.0.1-2
4 years ago
1.0.1-1
4 years ago
1.0.1-0
4 years ago
1.0.1
4 years ago
1.0.0-1
4 years ago
1.0.0
4 years ago
0.1.9-1
4 years ago
0.1.9-0
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago