Back to guidelines

Web ComponentThe latest version of this package is: 0.3.4, Opens in new window

Webcomponent for the FAQ 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-wc/faq@0.3.4

The webcomponent is fully scoped, and uses shadow DOM.

Table of Contents

Usage

Markup

<ids-faq>
  <details [open]>
    <summary>Vem gäller hemförsäkringen för?</summary>
    <div></div>
  </details></ids-faq>
<script src="…faq-webcomponent.iife.js"></script>
Contact us, Opens in new window