npm i s72
pnpm add s72
cargo add s72
data-tabs since 0.1.0
One job written for several tools: npm, pnpm, cargo. A <figure data-tabs> holding a run of <pre> shows one at a time, under a row of tabs.
npm i s72
pnpm add s72
cargo add s72
<figure data-tabs>
<pre data-lang="sh" data-title="npm"><code>npm i s72</code></pre>
<pre data-lang="sh" data-title="pnpm"><code>pnpm add s72</code></pre>
<pre data-lang="sh" data-title="cargo"><code>cargo add s72</code></pre>
</figure>data-title names the tab. Leave it out and the tab takes the block's data-lang.
<pre> into a figure of its own, so every block keeps the code view's caption, language chip and Copy button.aria-selected says which one is open.<figcaption> would, above the blocks.<pre> is left as the plain code view it already is.