Mockup

Mockup is a component that allows you to create a mockup of an application

npm i @nerdfish/ui
installing...
Error!
Something went wrong, aborting mission.
'use client'
import { Mockup, MockupWindow } from '@nerdfish/ui'
export function MockupExample() {
return (
<Mockup>
<MockupWindow>
<pre data-prefix="1">
<code>npm i @nerdfish/ui</code>
</pre>
<pre data-prefix=">" className="text-warning">
<code>installing...</code>
</pre>
<pre data-prefix="3" className="bg-danger text-danger">
<code>Error!</code>
</pre>
<pre>
<code className="opacity-50">
Something went wrong, aborting mission.
</code>
</pre>
</MockupWindow>
</Mockup>
)
}

Usage

import { Mockup, MockupWindow } from '@nerdfish/ui'
<Mockup>
<MockupWindow>
<pre data-prefix="1">
<code>npm i @nerdfish/ui</code>
</pre>
<pre data-prefix="2">
<code>installing...</code>
</pre>
<pre data-prefix="3" className="bg-warning text-warning">
<code>Error!</code>
</pre>
</MockupWindow>
</Mockup>