- About
- Getting Started
- Packages
- Concept
- How Does It Work
- List of supported browsers
- Contribute
- Roadmap
A set of independent components. Awesome library based on HTML and CSS using BEM convention with the JavaScript ReactJS implementation. Each component is 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 for intricate technologies, just pragmatism.
Components are simple to use (just drag and drop it), simple to customize (by using CSS modifier) to your own need. Each component may evaluate internally (HTML, CSS, JS) and minimize any impact on your application.
You can easily build a new app from scratch or integrate some components into an existing application.
html+css documentation website react storybook website
Make you sure that sass and bootstrap modules are installed :
npm install -D sass
npm install [email protected]
After installing bootstrap, add these css imports in the root file of your components tree :
import 'bootstrap/scss/bootstrap-grid.scss';
import 'bootstrap/scss/bootstrap-reboot.scss';
You can either install everything and use only what you need. If you do that you will be able to use tree shaking to have a smaller bundle. However, you will need to import all the styles and not only the style related to your component.
npm install @axa-fr/react-toolkit-all --save
import React from 'react';
import { Alert } from '@axa-fr/react-toolkit-all';
import '@axa-fr/react-toolkit-all/dist/style/af-toolkit-core.scss';
const MyAlertComponent = () => <Alert icon="ok" title="This is an alert" />;
Or you can install only the components you need:
npm install @axa-fr/react-toolkit-alert --save
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" />;
- @axa-fr/react-toolkit-all
- @axa-fr/react-toolkit-action
- @axa-fr/react-toolkit-alert
- @axa-fr/react-toolkit-badge
- @axa-fr/react-toolkit-button
- @axa-fr/react-toolkit-collapse
- @axa-fr/react-toolkit-core
- @axa-fr/react-toolkit-form-core
- @axa-fr/react-toolkit-form-filter
- @axa-fr/react-toolkit-form-filter-inline
- @axa-fr/react-toolkit-form-input-card
- @axa-fr/react-toolkit-form-input-checkbox
- @axa-fr/react-toolkit-form-input-choice
- @axa-fr/react-toolkit-form-input-date
- @axa-fr/react-toolkit-form-input-file
- @axa-fr/react-toolkit-form-input-number
- @axa-fr/react-toolkit-form-input-pass
- @axa-fr/react-toolkit-form-input-radio
- @axa-fr/react-toolkit-form-input-select
- @axa-fr/react-toolkit-form-input-select-multi
- @axa-fr/react-toolkit-form-input-slider
- @axa-fr/react-toolkit-form-input-switch
- @axa-fr/react-toolkit-form-input-text
- @axa-fr/react-toolkit-form-input-textarea
- @axa-fr/react-toolkit-form-steps
- @axa-fr/react-toolkit-form-summary
- @axa-fr/react-toolkit-help
- @axa-fr/react-toolkit-icon
- @axa-fr/react-toolkit-layout-footer
- @axa-fr/react-toolkit-layout-footer-client
- @axa-fr/react-toolkit-layout-header
- @axa-fr/react-toolkit-link
- @axa-fr/react-toolkit-loader
- @axa-fr/react-toolkit-modal-boolean
- @axa-fr/react-toolkit-modal-default
- @axa-fr/react-toolkit-panel
- @axa-fr/react-toolkit-popover
- @axa-fr/react-toolkit-restitution
- @axa-fr/react-toolkit-table
- @axa-fr/react-toolkit-tabs
- @axa-fr/react-toolkit-title
Each component should be autonomous (HTML + CSS + JS) and extensible.
-
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
Here is the list of browsers we tested this toolkit on:
- Chrome 84+
- Firefox 79+
- Microsoft Edge 85+
- Internet Explorer 11
- Safari 13.1+
- Opera 71+
- Update general documentation
- Migrating to TypeScript all components
- Fix the issues and clean code. Make it simpler, faster, lighter