Skip to content

collection of reusable utility components built in React and Typescript. It aims to provide a set of any React application to enhance functionality and improve development efficiency.

Notifications You must be signed in to change notification settings

probhask/utility_component

Repository files navigation

React Utility Components

This project is a collection of reusable utility components built in React and Typescript. It aims to provide a set of any React application to enhance functionality and improve development efficiency.

website - https://react-utility-comp.netlify.app/

Alt text

Components

  1. Toast Notification
  2. Nested Folder System like VS Code

Toast Notification

It is a lightweight toast component can be used to display notification or messages. It uses stack to store multiple toast automatically disappear after mention time or remove by pressing remove icon.

Alt text

Toast Types

  1. Success
  2. Error
  3. Info
  4. Warning

Toast Position

  1. Top-left
  2. Top-Center
  3. Top-Right
  4. Bottom-left
  5. Bottom-Center
  6. Bottom-Right
Usage -

First, select position then, select type

Folder System Like VS Code

It is a folder system just like a VS Code Folder Structure with following features :

Alt text

Functionality :

  1. Create Files and Folders
  2. Remove Files and Folders
  3. Sorted Files and Folders Structure
  4. Rename Files and Folders
  5. Delete Files and Folders
  6. Expand Folder
  7. Collapse All Folder with Single Click

Installation Steps

Running the project locally with vite

Perquisites

Ensures you have Node.js and Git installed on your machine. You will also need either npm or yarn

Installation and Setup

1.Clone the Repository

Open your terminal and navigate to the directory where you want to clone the project:

git clone https://github.com/probhask/utility_component.git

2. Install Dependencies

npm install
or
yarn install

3. Run the Development Server

npm run dev
or
yarn dev

This development server will start, and you should see output indicating the server is running.

4. Open the Application

Open your browser and navigate to the local URL provided by Vite development server to view React Application

This project uses VITEST for testing the components. Vitest is a fast and efficient testing framework, similar to Jest, but optimized to modern JavaScript framework like Vite

5. Run Test

npm run test
or
yarn test

Vitest will automatically detect and run all test files located in the **test** directory or files ending with .test.tsx.

About

collection of reusable utility components built in React and Typescript. It aims to provide a set of any React application to enhance functionality and improve development efficiency.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published