Cardy is a simple component for displaying content in a card format.
You can install Cardy by using npm:
npm i cardy_html_component
or yarn:
yarn add cardy_html_component
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);
});
To contribute to this project, please fork it on GitHub and open a pull request.