SmartCommon est la bibliothèque de composants React partagés pour toutes les applications SmartMaker. Ce module couvre les composants essentiels.
Dans le fichier .npmrc :
@cap-rel:registry=https://inligit.fr/api/v4/projects/197/packages/npm/
npm install @cap-rel/smartcommon
Dans main.jsx :
import "@cap-rel/smartcommon/dist/smartcommon-style.css";
| Catégorie | Composants | Usage |
|---|---|---|
| Mise en page | Page, Block, Panel, Popup | Structure des pages |
| Navigation | Navbar, Sidebar, Tabbar | Menus et navigation |
| Formulaires | Input, Select, Calendar, etc. | Saisie de données |
| Affichage | String, Number, Datetime, etc. | Formatage des données |
| UI | Button, Spinner, Tag, List | Éléments d'interface |
| # | Chapitre | Contenu |
|---|---|---|
| 1 | Mise en page | Page, Block, Panel, Popup |
| 2 | Navigation | Navbar, Sidebar, Tabbar |
| 3 | Formulaires | Input, Select, Calendar, Form |
| 4 | Affichage | Formats et composants de display |
// Import individuel import { Page, Block, Button } from '@cap-rel/smartcommon'; // Ou import groupé import { // Mise en page Page, Block, Panel, Popup, // Navigation Navbar, Tabbar, TabbarItem, // Formulaires Form, Input, Select, Calendar, Boolean, // Affichage List, ListItem, Button, Spinner, Tag } from '@cap-rel/smartcommon';
À la fin de ce module, vous saurez :