mino

Mino Code Editor

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.

License: MIT

📖 Documentation

Explore our comprehensive documentation:

🚀 Quick Start

# 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}
    />
  );
}

🎯 Key Features

🎨 Styling & Customization

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;
}

View all styling options →

🧩 Component Examples

🛠️ Development

Prerequisites

Local Setup

# Clone the repository
git clone https://github.com/mikr13/mino.git
cd mino

# Install dependencies
bun install

# Start development server
bun run dev

Available Scripts

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

See our Contributing Guide for more details.

📄 License

This project is licensed under the MIT License - see the LICENSE.md file for details.

🙏 Acknowledgments