1.0.3 • Published 2 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-login
Usage
- 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 storybook
To build a production version of Storybook, run
npm run storybook:build
1.0.3
2 years ago
1.0.2
3 years ago
1.0.1-2
3 years ago
1.0.1-1
3 years ago
1.0.1-0
3 years ago
1.0.1
3 years ago
1.0.0-1
3 years ago
1.0.0
3 years ago
0.1.9-1
3 years ago
0.1.9-0
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago