A minimal, interactive fake IDE component for React/Next.js. Great for demos, documentation, and playful UI experiences. Supports custom files, tabs, themes, and a built-in terminal.
npm install @thomarket/fake-ideimport { FakeIDE } from '@thomarket/fake-ide';
// The live demo:
<FakeIDE
theme="dark"
height="450px"
width="700px"
showTerminal={true}
className="mx-auto"
fixedSize={true}
ideName="thomas' live demo"
defaultExplorerOpen={false}
defaultTerminalOpen={false}
/>
// With explorer and terminal expanded by default:
<FakeIDE
theme="light"
showTerminal={true}
height="400px"
width="600px"
defaultExplorerOpen={true} // Explorer expanded by default
defaultTerminalOpen={true} // Terminal expanded by default
className="mx-auto"
/>
// Advanced usage with custom dimensions and callbacks:
<FakeIDE
theme="light"
showTerminal={true}
height="50vh"
width="90vw"
sidebarWidth={300}
terminalHeight={150}
fixedSize={true}
ideName="My Custom IDE"
defaultExplorerOpen={true}
defaultTerminalOpen={false}
onFileSelect={(file) => console.log('File selected:', file)}
onTabClose={(tabId) => console.log('Tab closed:', tabId)}
className="mx-auto"
/>
// With custom status bar:
<FakeIDE
theme="dark"
showTerminal={false}
customStatusBar={
<div className="px-4 py-1 bg-purple-600 text-white text-xs">
Custom Status: Ready
</div>
}
className="w-full h-96"
/>import React from 'react';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<h1>Welcome to React</h1>
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
</header>
</div>
);
}
export default App;