maj-ui is a React-based UI toolkit for the web.
This page describes how to get started building an application with maj-ui.
You can find the doc here
Install it with package manager npm or yarn (Yarn is used in this example):
yarn add maj-ui
Then, you need to add a css file to your entry point file: (src/index.tsx
or src/index.jsx
)
import 'maj-ui/dist/index.css';
Using Button component form package.
import { Button } from 'maj-ui';
const IncrementButton = () => {
return (
<Button
label="increment"
startIcon={props => <Plus {...props} />}
appearence="primary"
onClick={onIncrement}
/>
);
};
git clone git@github.com:Mario-aj/maj-ui.git
cd maj-ui
yarn
yarn dev
You can check that it worked by browsing http://localhost:6006/
.
Merging to the main
branch will automatically deploy to github pages.
I'd love to have your helping hand on maj-react-ui! See CONTRIBUTING.md for more information on how to get started.
maj-ui is MIT licensed