slemay_ntremblay
v1.1.3
Published
TP1 components for stories
Downloads
61
Readme
Utilisation des components
Alert Message
Entrer le message de l'alerte dans la props "message". Définir le type de message dans pa props "type" : success, info, error, warning.
Checkbox
Entrer le texte pour la case à cocher dans la props "text".
Tooltip
Définir le placement de l'info-bulle dans la props "placement" : - topLeft, top, topRight, rightTop, right, rightBottom, bottomRight, bottom, bottomLeft, leftBottom, left, leftTop.
TimeSelect
Définir la grosseur de la selection avec la props "size" : small, large.
InputForm
Définir la grosseur de l'entré avec la props "size" : small, large.
PaginationCount
Définir le nombre total de page avec la props "total". Définir la page courrante par défaut avec la props "defaultCurrent".
Switch
Définir la grosseur de la switch avec la props "size" : small, "".
ProgressBar
Définir le niveau de progression dans la props "percent" : 100, 30.
Popover
Définir le placement du popover dans la props "placement" : - topLeft, top. topRight, rightTop, right, rightBottom, bottomRight, bottom, bottomLeft, leftBottom, left, leftTop. Entrer le titre dans la props "title". Définir l'action avec la props "trigger" : click, hover, focus.
Buttons
Définir la grosseur du bouton avec la props "size" : large, "", small. Définir le type de bouton avec la props "type" : - primary, default, dashed, text, link
NPM library Create React App template
Create React App (CRA) template to build and publish NPM libraries with rollup, eslint and stylelint configurations. See full documentation.
Usage
npx create-react-app %PROJECT_NAME% --template npm-libraryOr
yarn create react-app %PROJECT_NAME% --template npm-libraryThen
cd %PROJECT_NAME%
yarn startFeatures
- Handles all modern JS features.
- Bundles
commonjsandesmodule formats. - Husky for git hooks.
- Eslint and stylelint.
- Rollup for bundling.
- Babel for transpiling.
- Jest and react-testing-library for testing.
- Supports CSS modules, SASS/SCSS, Less and PostCSS.
- Storybook for documentation and demo.
- And much more.
Contributors
@morewings, @sky0matic
