Shared React components of MLL
yarn add @mll-lab/react-components
Import the styles once in the entry point of your application:
import '@mll-lab/react-components/esm/index.css';To set up proper styles, wrap your application in <Provider>:
import { Provider } from '@mll-lab/react-components';
import * as React from 'react';
import { render } from 'react-dom';
render(
<Provider>
<App />
</Provider>,
document.getElementById('app'),
);Optionally, you may pass a theme:
<Provider theme={{ backgroundColor: 'purple' }}>