Playground

Vite

Install the packages, import the stylesheet once in main.tsx and render your first component.

Installation

  1. Install the packages

    npm install @monoline/react @monoline/css
    
  2. Import the stylesheet once

    src/main.tsx
    import '@monoline/css';
    import {createRoot} from 'react-dom/client';
    import {App} from './App';
    
    createRoot(document.getElementById('root')!).render(<App />);
    
  3. Render a component

    src/App.tsx
    import {Button} from '@monoline/react';
    
    export const App = () => <Button>Save</Button>;