@niklaspelli/fwk4-23-components
v2.0.0
Published
## Introduction
Downloads
15
Readme
FWK4-23-Components
Introduction
fwk4-23-components
is a library of small, reusable components that can be used to build flexible and modular applications. The purpose of this repository is to enable fast and efficient development by providing predefined components that can be combined and customized for various projects.
Installation NPM
Install via npm:
npm i @niklaspelli/fwk4-23-components
NPM LINK
- Add a index.js directly in the src. and import the big components (Login, Register, Home, Worplace, InfoUser)
- configure the package.json file and add "main": "./src/index.js", after version.
- From your components type in bash/terminal ```npm link
- In the package.json find the name "name" for the file.
- The create an app using ```npm create vite@latest
npm install
npm link "name of the component"
- import the component you want in app.jsx from the library. Notice if you want to uppdate your library you need to do step 3 and step 7 to update.
Components in the library:
- PrivateHeader
- PublicHeader
- Home
- Login - props to use logic ({loginFunction})
- Profile
- Register
- Workspace
subComponents
- Avatar
- Form
- HeadLines
- Logo
- Search
- TaskBoard
- Column
- UniversalButton
Link to github frontend.
Here you can se an example of how the components are used. https://github.com/Monchekin/fwk4-23-frontend
Storybook
- Install via npm:
npm run storybook