Contribution Guide
Thank you for your interest in contributing to Kaif UI! Your contributions are invaluable in helping us improve the library and make it a better tool for developers.
Contribution Rules
- Follow the existing code style
- Write clear and concise comments
- Run linting and formatting tools
- Run the test suite to ensure your changes don't break existing functionality.
- Treat other contributors with respect and professionalism.
- Do not push directly to the main branch
These rules may be updated from time to time to reflect changes in the project or community.
Getting Started with Contributing to Kaif UI
Fork the Repository
Create a personal copy of Kaif UI on your GitHub account to start contributing.
Go to the Kaif UI GitHub repository and click on the "Fork" button at the top right. This will create a copy of the repository under your GitHub account.
Clone Your Forked Repository
Replace YourUsername
with your GitHub username.
Create a New Branch
Important: Before making any changes, create a separate branch for your component to keep the main branch clean.
Replace your-feature-branch
with a descriptive name for your feature or component.
Navigate to the Folder
Here, If you want to contribute the component, Head over to the following directory:
And if you want to contribute the block, Head over to the following directory:
Create Your Component or Block
In the components
folder, create your component:
Add Documentation
After creating the component, navigate to:
Here, Create a new .mdx
file for your component or block:
Example .mdx
Structure
Display Your Component or Block
To display your component in Kaif UI, add it in the componentsData.tsx
file:
Here is the example:
Add a component image in:
Add Yourself as a Contributor
Don’t forget to add yourself to the contributors.tsx
file:
Example entry:
Submit Your Changes
After completing the above steps, commit and push your changes:
Create a Pull Request
Then, create a Pull Request (PR) to merge your branch into the main branch on GitHub.
FAQ
Some common questions you may encounter:
Learn More
To learn more about Kaif UI, take a look at the following resources:
- Official Documentation - Learn about all the features and components available in kaif UI.
- GitHub Discussions. - Join the community and ask questions or share your feedback.
Join the Community
Become a part of the Kaif UI community! Share your experiences, ask questions, and collaborate with other developers. Together, we can make kaif UI even better. Join Discord.
License
Kaif UI is licensed under the MIT License. You are free to use, modify, and distribute the library as you see fit. For more information, please refer to the LICENSE
Thank You
Thank you for choosing Kaif UI. We appreciate your support and look forward to seeing the amazing applications you build with our library.
Enjoy!
We hope you enjoy using Kaif UI to build your applications. Our goal is to provide you with a robust and flexible set of tools to create stunning user interfaces.
Kaif UI
Built with ❤️ by Muhammad Kaif Nazeer