Welcome to the Dynamic Grid Component repository! This project provides a set of components for creating dynamic grid layouts, suitable for a variety of web applications. It is composed of three packages:
- Core Library:
dynamic-grid-core
- Web Component:
dynamic-grid-web
- React Component:
dynamic-grid-react
The Dynamic Grid Component is designed to provide a flexible and easy-to-use grid layout system. By leveraging the core library, the web component, and the React component, developers can create responsive and adaptive grid layouts that adjust based on the available space and specified parameters.
The core library that contains the fundamental logic for calculating grid layouts. It ensures that the grid adapts to the available space by adjusting the number of columns based on the minimum column width.
For more details, refer to the dynamic-grid-core
README.
A web component built with Lit, allowing for dynamic grid layouts in any web application. This component utilizes the core library to handle the layout calculations.
For more details, refer to the dynamic-grid-web
README.
A React component that integrates seamlessly with React applications, providing the same dynamic grid functionality. This component also relies on the core library for layout calculations.
For more details, refer to the dynamic-grid-react
README.
Each package can be installed individually via npm. Depending on your needs, you can choose to install one or more of the packages.
npm install @mordech/dynamic-grid-core
npm install @mordech/dynamic-grid-web
npm install @mordech/dynamic-grid-react
We welcome contributions from the community! If you'd like to contribute, please follow these steps:
-
Fork the repository: Click the "Fork" button at the top right of this page to create a copy of the repository in your GitHub account.
-
Clone your fork: Use
git clone
to clone your forked repository to your local machine.git clone https://github.com/your-username/dynamic-grid-component.git
-
Install dependencies: Navigate to the project directory and install the dependencies.
yarn install
-
Set up Husky: Initialize Husky to ensure pre-commit hooks are set up correctly.
yarn husky install
-
Create a new branch: Create a new branch for your feature or bug fix.
git checkout -b my-new-feature
-
Make your changes: Implement your feature or bug fix.
-
Commit your changes: Use Conventional Commits when committing changes.
-
Push to the branch: Push your changes to your forked repository.
git push origin my-new-feature
-
Create a Pull Request: Open a pull request in the original repository. Provide a clear description of your changes and why they are necessary.
As this project is maintained by a solo maintainer, please be patient while your pull request is reviewed. Ensure your code follows the project's coding standards and includes appropriate tests. If you need any help or have questions, feel free to open an issue.
This project is licensed under the MIT License. See the LICENSE file for more information.