Mockup Code
A terminal / code block mockup with gutter prefix labels.
Wraps a <div class="mockup-code">. Each line is a
<pre data-prefix="..."><code> element.
Single command
Use data-prefix="$" on a <pre> to show a shell prompt.
Multi-line with output
Mix prompt lines and numbered output lines. Use any string as data-prefix.
Highlighted line
Add class="bg-warning text-warning-content" (or any bg/text pair) to a
<pre> to highlight that line.
Error line
Use class="bg-error text-error-content" for error output.
Without prefix
Omit data-prefix to show no gutter label on that line.
Custom background
Pass a bg utility via classes to change the terminal color scheme.