2.2.1 • Published 3 years ago

fxgcomponents_gafer002 v2.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

LIBRAIRIE NPM DE COMPOSANTES REACT

N|Solid

Travail projet 1, presenté par Anna Ferjani

La bibliothèque de composantes web réutilisable comprend les composantes suivantes:

  • AntInputSite
  • AntTimeline
  • BSAlert
  • BSTable
  • MuiAvatarGroup

  

✅ AntInputSite

Description

Permet de créer un élément input pour saisir l'adresse d'un site Web, avec la possibilité d'ajouter des addons au début et à la fin d'un input

Dépendances

Usage

import { AntInputSite } from 'components/AntInputSite';

const placeholder = "Your site web";
const beforeArray = ['http', 'https'];
const afterArray = ['com', 'org', 'net'];

<AntInputSite  
    placeholder={placeholder}
    beforeArray={beforeArray}
    afterArray={afterArray}
/>

Propriétés

NomType
placeholderstring
beforeArrayarray
afterArrayarray
beforeStringstring
afterStringstring

✅ AntTimeline

Description

Permet de créer des timelines automatiquement, à partir d'un tableau, passé en tant qu'un paramètre

Dépendances

Usage

import { AntTimeline } from 'components/AntTimeline';

var items = [];

items.push({date: '2022-11-01', text:'Create a services'});
items.push({date: '2022-11-03', text: 'Solve initial network problems'});
items.push({date: '2022-11-07', text: 'Technical testing'});

<AntTimeline mode="left" items={items}/>

Propriétés

NomType
mode'left' | 'right' | 'alternate'
itemsarray

✅ BSAlert

Description

Permet de créer des messages de rétroaction contextuels pour les actions typiques de l'utilisateur avec la possibilité d'ajouter des bootstrap icons dans ces messages

Dépendances

Usage

import { BSAlert } from 'components/BSAlert';


const heading = "This is an alert's header";
const alertBody = "This is an alert — check it out!";

<BSAlert  
    variant="danger" 
    alertBody={alertBody}
    heading={heading}
    icon="dash"
/>

Propriétés

NomType
variant'danger' | 'success' | 'warning'
alertBodystring
headingstring
icon'dash' | 'check' | 'exclamation'

✅ BSTable

Description

Permet de créer un table bootstrap à partir des tableaux, passés en tant que des paramètres

Dépendances

Usage

import { BSTable } from 'components/BSTable';

var headers = ['First name', 'Last name', 'email'];
var content = [['John', 'Tremblay', 'jtremblay@gmail.com'],
            ['Gilles', 'Duquerroy', 'gduquerroy@cg.com'],
            ['Pierre-Luc', 'Dubé', 'pldube@cg.com']];

<BSTable headers={headers} content={content} striped='true'/>

Propriétés

NomType
headersarray
contentarray
stripesboolean
borderedboolean
hoverboolean
variant"dark"

✅ MuiAvatarGroup

Description

Permet de créer un groupe des avatars à partir d'un tableau avec des liens des images

Dépendances

Usage

import { MuiAvatarGroup } from 'components/MuiAvatarGroup';

var img = [];

for(let i = 1; i <=5; i++)
    img.push(`assets/img/${i}.jpg`);

<MuiAvatarGroup images={img} max={img.length} spacing={medium}/>

Propriétés

NomType
maxnumber
totalnumber
imagesarray
spacing'medium' | 'small' | number

🚀 - Démarrer storybook

npm run storybook

📝 License

MIT Free Software

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.7

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.40

3 years ago

1.0.39

3 years ago

1.0.38

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.33

3 years ago

1.0.29

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.12

3 years ago