Files
webawesome/docs/_data/components.js
Lea Verou bd35c23784 Indices of components by attribute, slot, part, etc. (#240)
* Simplify how list of components is exposed to 11ty

No need for functions or computing multiple times, that's what data is for!

* Add attributes to component data

* Cleanup

* Add slug (tagName without wa-)

* Add component reference / cheatsheet
2024-11-24 21:19:50 -05:00

4 lines
145 B
JavaScript

import componentList from './componentList.js';
export default Object.fromEntries(componentList.map(component => [component.slug, component]));