CdnTabs
CdnTabs generates CDN URLs and HTML tags for CSS and JavaScript files in an npm package. It displays jsDelivr and unpkg tabs by default.
Basic usage
index.mdx
The component generates a <link rel="stylesheet"> tag for each CSS file and a <script src> tag for each JavaScript file. File paths are relative to the package root.
Choose CDNs
Use cdns to select built-in CDNs and set their order:
index.mdx
All CdnTabs components use the cdn tab group, so the selected tab is synchronized across them.