0.0.4 • Published 2 years ago

cardy_html_component v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Cardy Html Component

Description

Cardy is a simple component for displaying content in a card format.

Installation

You can install Cardy by using npm:

npm i cardy_html_component

or yarn:

yarn add cardy_html_component

Usage

In your HTML file, you can use the Cardy component like this:

<my-card
    nom="CP1" 
    number="30"
/>

add js array of cards:

const myCard = document.querySelector('my-card');
myCard.moreOption = ["CM2 A", "CM2 B", "CM2 C"]

add event listener for watch more option checkbox state change:

myCard.addEventListener('optionChecked', (e) => {
    console.log(e.detail);
});

Technical details

 Javascript  npm  npm  github  github

Contributing

To contribute to this project, please fork it on GitHub and open a pull request.

License

License