npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

componentsstephaniedenis

v1.24.40

Published

React components cours 420-314-fx

Downloads

74

Readme

TP1 - Composants React

:women_wrestling: Équipe

Stéphanie Denis (steden001) et Emeline Marquès (emmar009)

:page_facing_up: Description

Il s'agit de la création d'une bibliothèque de 10 composants React ayant chacun 3 stories différentes. La liste des composants :

:arrow_forward: Pour démarrer le projet :

yarn install
yarn storybook

:books: Les composantes

:large_orange_diamond: Alert

:small_orange_diamond: Description

Permet d'afficher un message d'alerte.

:small_orange_diamond: Librairie utilisée

mui Version : 5.2.7

:small_orange_diamond: Exemple

const Success = Template.bind({});
Success.args={
    variant:'outlined',
    color: 'success',
    severity: 'success'
}

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | variant | string | outlined, filled | | severity | string | error, warning, info, success | | color | string | error, warning, info, success |

:large_orange_diamond: Badge

:small_orange_diamond: Description

Permet de créer un badge.

:small_orange_diamond: Librairie utilisée

antd Version : 4.18.2

:small_orange_diamond: Exemple

const Green = Template.bind({});
Green.args={
    text:'citron vert',
    color:'lime'
}

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | text | string | au choix | | color | string | pink, red, yellow, orange, cyan, green, blue, purple, geekblue, magenta, volcano, gold, lime |

:large_orange_diamond: Button

:small_orange_diamond: Description

Permet de créer un bouton.

:small_orange_diamond: Librairie utilisée

mui Version : 5.2.7

:small_orange_diamond: Exemple

const Principal = Template.bind({});
Principal.args={
    variant: 'outlined',
    color:'primary',
    size:'medium',
    disabled:false,
    text:'Principal'
}

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | variant | string | text, contained, outlined | | color | string | inherit, primary, secondary, success, error, info, warning | | size | string | small, medium, large | | disabled | boolean | true, false | | text | string | Texte du bouton au choix |

:large_orange_diamond: Card

:small_orange_diamond: Description

Permet de créer une carte avec une image d'illustration ainsi que du texte.

:small_orange_diamond: Librairie utilisée

react-bootstrap Version : 2.5.0

:small_orange_diamond: Exemple

const Small = Template.bind({});
Small.args = {
  width: '200px',
  title:'Petit titre',
  variant:'primary'
};

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | width | string | Au choix, pour changer la largeur de la carte | | title | string | Titre au choix | | variant | string | primary, secondary, success, danger, warning, info, light, dark |

:large_orange_diamond: Carousel

:small_orange_diamond: Description

Permet de créer un carousel d'images avec un titre.

:small_orange_diamond: Librairie utilisée

antd Version : 4.18.2

:small_orange_diamond: Exemple

const Small = Template.bind({});
Small.args={
    width: '200px',
    background:'#ac9a66',
    height: '180px',
    color: '#fff',
    lineHeight: '180px',
    textAlign: 'center'
}

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | width | string | Au choix, pour changer la largeur du carousel | | background | string | Au choix, entrer un code hexadécimal | | heigth | string | Au choix, pour changer la hauteur du h3 | | color | string | Au choix, entrer un code hexadécimal | | lineHeight | string | Au choix pour changer la hauteur de l'interlignage | | textAlign | string | left, center, right, justify |

:large_orange_diamond: Checkbox

:small_orange_diamond: Description

Permet de créer des checkbox.

:small_orange_diamond: Librairie utilisée

mui Version : 5.2.7

:small_orange_diamond: Exemple

const Bleu = Template.bind({});
Bleu.args={
    color: 'primary'
}

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | color | string | inherit, primary, secondary, success, error, info, warning |

:large_orange_diamond: Collection

:small_orange_diamond: Description

Permet de créer une collection d'images.

:small_orange_diamond: Librairie utilisée

antd Version : 4.18.2

:small_orange_diamond: Exemple

const Small = Template.bind({});
Small.args = {
  imagesurl: img,
  width: 100
};

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | imageurl | array | Ajouter des images | | width | number | Modifier la largeur, au choix |

:large_orange_diamond: Pagination

:small_orange_diamond: Description

:small_orange_diamond: Librairie utilisée

antd Version : 4.18.2

:small_orange_diamond: Exemple

const Vingt = Template.bind({});
Vingt.args={
    defaultCurrent: 1,
    total: 200
};

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | defaultCurrent | number | Indique le numéro de page initial par défaut | | total | number | Remplacer par le nombre d'éléments souhaité |

:large_orange_diamond: Progress

:small_orange_diamond: Description

:small_orange_diamond: Librairie utilisée

antd Version : 4.18.2

:small_orange_diamond: Exemple

const Petit = Template.bind({});
Petit.args = {
    percent:30
};

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | percent | number | Entre 0 et 100 |

:large_orange_diamond: Spin

:small_orange_diamond: Description

:small_orange_diamond: Librairie utilisée

antd Version : 4.18.2

:small_orange_diamond: Exemple

const Small = Template.bind({});
Small.args={
    size:'small'
}

:small_orange_diamond: Élément(s) personnalisable(s)

| Nom | Type | Valeur(s) disponible(s) | | ------------- | ------------- | ------------- | | size | string | small, medium, large |