LotfiMEZIANI / react-toolkit

Flexible components html + css + react using BEM convention. May be, you can call it "Design System" !

Home Page:https://axaguildev.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@axa-fr/react-toolkit

Build status Quality Gate Reliability Security Code Corevage lerna Twitter

About

A set of independent components. Awesome library based on HTML and CSS using BEM convention with the JavaScript ReactJS implementation. Each components are autonomous and extensible. Pick and use only what you need!

How React-toolkit does CSS isolation?

Only by using BEM (Block Element Modifier) CSS convention. No need of the intricate technologies, just pragatism.

Components are simple to use (just drag and drog it), simple to customize (by using CSS modifier) to your own need. Each component may evaluate internally (HTML, CSS, JS) and minimize an impact on your application.

You can easily build a new app from scratch or integrate some component into existing application.

html+css documentation website react storybook website

Getting Started

Install what you need

npm install @axa-fr/react-toolkit-alert --save

Use only what you need

import React from 'react';
import Alert from '@axa-fr/react-toolkit-alert';
import '@axa-fr/react-toolkit-alert/dist/alert.scss';

const MyAlertComponent => () => (
<Alert
    icon="ok"
    title="This is an alert"
  />
)

Packages

Concept

Each component should be autonomous (HTML + CSS + JS) and extensible.

How Does It Work

  • HTML/CSS :

    • BEM convention is used in order to break CSS cascading problem
    • SCSS and CSS files are avalaible for every component and can be overrided or extended
    • HTML/CSS Documentation
  • React :

    • Components are stateless by default
    • Some Higher Order Components (HOC) are stateful but feel free to use the stateless one if it fits your use case
    • React documentation

Contribute

Roadmap

  • Update general documentation
  • Migrating to TypeScript all components
  • Fix the issues and clean code. Make it simpler, faster, lighter

Demo

alt text

About

Flexible components html + css + react using BEM convention. May be, you can call it "Design System" !

https://axaguildev.github.io

License:MIT License


Languages

Language:JavaScript 41.8%Language:HTML 30.0%Language:CSS 21.7%Language:TypeScript 6.5%