mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 20:19:13 +00:00
* 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
4 lines
145 B
JavaScript
4 lines
145 B
JavaScript
import componentList from './componentList.js';
|
|
|
|
export default Object.fromEntries(componentList.map(component => [component.slug, component]));
|