cardy_html_component
v0.0.4
Published
custom card components
Downloads
2
Maintainers
Readme
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
Contributing
To contribute to this project, please fork it on GitHub and open a pull request.