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 🙏

© 2026 – Pkg Stats / Ryan Hefner

fxgcomponents_blcav011

v1.0.31

Published

React Component Library

Readme

Librairie de composants React

Collaboration

Ce projet a été créé CoCav et Blcav.

Description

Pour répondre à la demande de notre client, une bibliothèque de composants web réutilisable a été créée.

Elle comporte 11 composants déclinés chacun en 3 stories.

Liste des composants :

  • Accordion
  • Avatar
  • Breadcrumbs
  • Button : ButtonSize & ButtonVariant
  • Card
  • Divider
  • Popover
  • Textfield : TextField & TextFieldVariant

Bonus :

  • Collection

Détail des composants

Accordion Propriétés à changer :

  • bordered (type boolean) : permet de changer l'aspect visuel de l'accordéon en y ajoutant des bordures ou non.
  • show (type boolean) : permet de garder ouvert ou non le tiroir d'un accordéon.
  • item (type string) : permet d'inscrire le numéro du tiroir que l'on souhaite voir ouvert dans l'accordéon.

Exemple d'utilisation :

<Accordion
  bordered
  item="1"
  show
/>

Avatar Propriétés à changer :

  • width (type number) : permet de définir la largeur d'une image.
  • height (type number) : permet de définir la hauteur d'une image.
  • alt (type string) : permet d'ajouter un texte alternatif lié à l'image.
  • url (type string) : permet d'ajouter le chemin du fichier qui contient l'image.

Exemple d'utilisation :

<MyAvatar
  alt="avatar's image"
  height={56}
  imagesurl="assets/img/img_profil.jpg"
  width={56}
/>

Breadcrumbs Propriétés à changer :

  • separator (type string) : permet de changer l'aspect visuel des séparateurs entre les liens ("/", "-" ou "|").
  • url (type string) : permet d'ajouter l'url des liens.
  • item (type number) : permet de définir le nombre maximal de liens à afficher à l'écran.

Exemple d'utilisation :

<MyBasicBreadcrumbs
  item={3}
  separator="/"
  url="/"
/>

ButtonSize Propriétés à changer :

  • size (type string) : permet de définir la taille du bouton (small, medium ou large).
  • label (type string) : permet de définir le texte du libellé du bouton.

Exemple d'utilisation :

<ButtonSize
  label="Medium"
  size="medium"
/>

ButtonVariant Propriétés à changer :

  • variant (type string) : permet de définir l'aspect visuel du bouton (contained, outlined ou text).
  • label (type string) : permet de définir le texte du libellé du bouton.

Exemple d'utilisation :

<ButtonVariant
  label="Text"
  variant="text"
/>

Card Propriété à changer :

  • title (type string) : permet de définir le titre de la carte.
  • size (type string) : permet de définir la taille de la carte (small ou default).

Exemple d'utilisation :

<MyCard
  size="small"
  title="Small Card"
/>

Divider Propriétés à changer :

  • orientation (type string) : permet de définir l'orientation de la barre de séparation (left, right ou center).
  • text (type string) : permet de définir un texte qui accompagne la barre de séparation.

Exemple d'utilisation :

<MyDivider text="Center" />

Popover Propriétés à changer :

  • trigger (type string) : permet de définir le type d'événement qui fera apparaître le menu (hover, focus ou click).
  • label (type string) : permet de définir le texte du libellé du bouton.

Exemple d'utilisation :

<MyPopover
  label="Click me"
  trigger="click"
/>

TextField Propriétés à changer :

  • id (type string) : permet de définir l'id du champ.
  • label (type string) : permet de définir le libellé du champ.
  • placeholder (type string) : permet de définir le texte du placeholder du champ.
  • LabelTextHelper (type string) : permet de définir le texte du texthelper du champ.

Exemple d'utilisation :

<MyTextField
  helperText="Some important text"
  id="labelTextHelper"
  label="label"
  placeholder="Default Value"
/>

TextFieldVariant Propriétés à changer :

  • id (type string) : permet de définir l'id du champ.
  • label (type string) : permet de définir le texte du libellé du champ.
  • placeholder (type string) : permet de définir le texte du placeholder du champ.
  • variant (type string) : permet de définir l'aspect visuel du bouton (filled, outlined ou standard).

Exemple d'utilisation :

<TextFieldVariant
  id="standard-basic"
  label="Standard"
  placeholder="Default Value"
  variant="standard"
/>

Collection Propriétés à changer : imageurl : type array, width : type number

  • imageurl (type array) : permet d'ajouter des images dans un tableau.
  • width (type number) : permet de définir la largeur des images contenues dans le tableau.

Exemple d'utilisation :

<Collection
  imagesurl={[
    'assets/img/macareux.jpg',
    'assets/img/sterne_artique1.jpg',
    'assets/img/sterne_artique2.jpg'
  ]}
  width={200}
/>

Langue

Ce projet a été réalisé en anglais.

Technologies

Langage utilisé :

  • React (https://fr.reactjs.org/): version 17.0.2

Librairies open source externes utilisées :

  • Storybook (https://storybook.js.org/): version 6.5
  • MUI (https://mui.com/): version 5.10.9
  • Ant Design (https://ant.design/): version 4.23.5

Pour démarrer le projet :

yarn install
yarn storybook