LBD Components

lbd-disclosure

A Web Component for creating accessible disclosures

WAI-ARIA Authoring Practices

Examples

General usage example:

<script type="module" src="lbd-disclosure.js"></script>

<lbd-disclosure>
  <details>
    <summary>More Information</summary>
    Disclosure content goes here...
  </details>
</lbd-disclosure>

Features

This Web Component allows you to:

Installation

You have a few options (choose one of these):

  1. Install via npm: npm install @lunchbreakdev/lbd-disclosure
  2. Download the source manually from GitHub into your project.
  3. Skip this step and use the script directly via a 3rd party CDN (not recommended for production use)

Demo

More Information Disclosure content goes here...

Changelog

Edit this page