lbd-treeview
A Web Component for creating an accessible tree views
Examples
General usage example:
<script type="module" src="lbd-treeview.js"></script>
<lbd-treeview label="Fruits and Veggies">
<ul>
<li>Apple</li>
<li>
Banana
<ul>
<li>Cucumber</li>
</ul>
</li>
<li>Dragonfruit</li>
<li>
Eggplant
<ul>
<li>Fennel</li>
</ul>
</li>
</ul>
</lbd-treeview>
Features
This Web Component allows you to:
Installation
You have a few options (choose one of these):
- Install via npm:
npm install @lunchbreakdev/lbd-treeview - Download the source manually from GitHub into your project.
- Skip this step and use the script directly via a 3rd party CDN (not recommended for production use)
Demo
- Apple
-
Banana
- Cucumber
- Dragonfruit
-
Eggplant
- Fennel