A reusable React component library for LeetCode-style code editor using Monaco Editor. Designed for easy integration into coding interview platforms, educational tools, and practice environments.
Explore our comprehensive documentation:
# Install the package
npm install @mikr13/mino
# Or with pnpm
pnpm add @mikr13/mino
# Or with bun
bun add @mikr13/mino
import { CodeEditor } from '@mikr13/mino';
import '@mikr13/mino/style.css';
function App() {
const [code, setCode] = useState('console.log("Hello, World!");');
return (
<CodeEditor
language="javascript"
value={code}
onChange={setCode}
showToolbar={true}
showStatusBar={true}
/>
);
}
Mino provides extensive styling options through CSS variables:
/* Custom theme example */
:root {
--mino-editor-bg: #fafafa;
--mino-editor-text: #2d3748;
--mino-toolbar-bg: #f7fafc;
--mino-toolbar-text: #4a5568;
}
# Clone the repository
git clone https://github.com/mikr13/mino.git
cd mino
# Install dependencies
bun install
# Start development server
bun run dev
bun run dev - Start Ladle development serverbun run build - Build the librarybun run build:story - Build documentationbun run preview:story - Preview documentationbun run lint - Run linterbun run format - Format codebun run type-check - Run TypeScript checksgit checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)See our Contributing Guide for more details.
This project is licensed under the MIT License - see the LICENSE.md file for details.