Back to Disclosure Card-guidelines
JavaScriptThe latest version of this package is: 0.18.6, Opens in new window
JavaScript library for the Disclosure Card Component
This component is compatible with ESM (ES6 module) and IIFE. See documentation examples below.
To be able to install this component, please refer to the Project Setup documentation.
$ npm i @ids-js/disclosure-card@0.18.6
Table of Contents
Usage
<ul class="if cards disclosures" role="presentation">
<li class="if" role="presentation">
<button
aria-haspopup="true"
aria-expanded="false"
aria-controls="expandable-content-16"
aria-labelledby="expandable-text-16"
class="if disclosure-card"
type="button"
>
<img class="if image" src="/images/travel.png" />
<p id="expandable-text-16" class="if text body">Reseforsäkring</p>
<p class="if expandable text meta">Dölj reseförsäkringar</p>
</button>
<div tabindex="-1" id="expandable-content-16" class="if block expandable">
…
</div>
</li>
<li class="if" role="presentation">…</li>
<li class="if" role="presentation">…</li>
</ul>
<script src="../disclosure-card.iife.js"></script>
<script>
IDSDisclosureCard.init();
</script>
Changelog
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
0.17.0 (2021-10-21)
Code Refactoring
- 💡 Remove support for CommonJS (9f84d9a)
BREAKING CHANGES
- 🧨 We have removed the support for CommonJS for all @ids-js packages
0.16.1 (2021-10-21)
Bug Fixes
- Use common for cjs and main for esm (96f673d)