mp-custom-components v0.1.2
📁 MP Custom Components
This project is a library of custom components created with Vite, React, TypeScript, and Storybook.
🛠️ Development Server
Run npm run storybook
to start the development server. Navigate to http://localhost:6006/
. The application will automatically reload if you change any of the source files.
🔧 Creating Components
Run npm run generate component component-name
to generate a new component using a predefined template.
🏗️ Build
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory.
❓ Further Help
For more help on Vite, use vite --help
or check out the Vite documentation. For more help on Storybook, check out the Storybook documentation.
📦 Dependencies and Versions
- React: ^18.2.0
- React DOM: ^18.2.0
- TypeScript: ^5.2.2
- Vite: ^5.1.4
- Storybook: ^7.6.17
▶️ Running the Project
To run the project locally, follow these steps:
- Make sure you have Node.js and npm installed on your machine.
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Run
npm install
to install the project dependencies. - After the installation is complete, run
npm run dev
to start the development server. - Open your web browser and navigate to
http://localhost:3000/
to view the project.
📦 Exported Components
Currently, the library exports the following components:
- 🟦 CustomButton: A custom button component.
- 🟦 CustomButtonDownloadExcel: A button component for downloading Excel files.
📝 License
This project is licensed under the MIT License. See the LICENSE file for more details.
📫 Contact
For more information, visit the documentation page or the repository.