epfl-elements-react-si-extra
v1.0.14
Published
EPFL Elements React Library for extra elements
Maintainers
Readme
EPFL Elements React Library
The EPFL Elements React library SI entra is a collection of React components based on the EPFL Elements Style Guide and EPFL Elements React library.
The code in this repository provides both the EPFL Elements React SI entra Storybook, where you can preview each component, and the epfl-elements-react-si-extra library itself, which is published on the npm registry.
TL;DR (Usage)
- Bootstrap a new react app using vite:
▶ npm create vite ✔ Project name: … test-app ? Select a framework: › - Use arrow-keys. Return to submit. Vanilla Vue ❯ React [...] Others - In the newly create directory, install the library:
npm install epfl-elements-react-si-extra - Import component using the library
import { Component } from 'epfl-elements-react-si-extra'
Objectives
The main objective is to provide the EPFL Elements React SI extra library based on EPFL Elements.
Explore
The best way to explore the components provided by this library is to browse the Storybook website here: EPFL Elements React SI entra Storybook.
Techstack
While it might work otherwise, this library is ment to be used with React > 18.
It uses Storybook > 9, TypeScript > 5.0.2 and Vite > 4.3.
Install
If you are happy with the contents of the library and you would like to use it
in your project, you just need to install it as any other NPM dependency, e.g.
just use npm i epfl-elements-react-si-extra. The library is also released under the
releases of the GitHub repository.
Contribute
We <3 contributions! You can ask us something or report a bug by filling an issue in the repository. If you want to contribute to the code base, feel free to propose a new pull request:
- Fork the repository
- Clone your fork
- Create a new branch for your feature or bug fix
- Make your changes
- Commit your changes
- Push your branch to your fork
- Open a pull request
Develop
To run locally and add some feature to this repository, clone the repository and
run npm i to install the dependencies. Then
- Use
npm run storybookto deploy the Storybook server (https://localhost:6006) - To prepare the static Storybook content, use
npm run build-storybook - To build the epfl-elements-react-si-extra library, use
npm run build
