Code mockup
A frame for showing code or terminal commands. Every code box on this site is one.
| Name | Type | What it does |
|---|---|---|
mockup-code | component | The frame, with the three window dots |
data-prefix="…" | modifier | On a <pre>: a prompt or line number shown before the line |
Terminal
npm i github:huntercash/glimmer-ui
added 1 package
<div class="mockup-code" style="width: min(26rem, 100%)">
<pre data-prefix="$"><code>npm i github:huntercash/glimmer-ui</code></pre>
<pre data-prefix=">"><code>added 1 package</code></pre>
</div>