Thank you for your interest in contributing to Ved UI! This guide will help you get started.
Ved UI consists of:
/src/*- Core component source files/components/*- React components/lib/*- Utility functions and shared code/styles/*- CSS and styling files
/test/*- Test files/docs/*- Documentation
-
Fork the repository
-
Clone your fork:
git clone https://github.com/azacdev/ved-ui.git
-
Install dependencies:
pnpm install
-
Start the development server:
pnpm run dev
-
Create a new directory in
registry/uiwith your component name -
Initialize the package with required files:
package.jsonREADME.mdtsconfig.jsontsup.config.tssrc/directory
components/ui/your-component/
├── src/
│ ├── index.ts
│ ├── your-component.tsx
- Navigate to the
/docsdirectory - Place new documentation in the appropriate directory under
/content/docs/ - Use MDX format for documentation files
- Include proper frontmatter with title, description, and other metadata
- Follow the existing documentation style and structure
- Use TypeScript for all components
- Export proper type definitions
- Use interfaces over types where appropriate
- Provide comprehensive type documentation
- Use functional components
- Implement proper prop types and defaults
- Use React Server Components where possible
- Follow the compound component pattern when appropriate
- Include working examples for components and features
- Use TypeScript for all code examples
- Ensure examples are accessible and follow best practices
- Test examples locally before submitting
- Create a new branch for your changes
- Make your changes following the guidelines above
- Test your changes locally
- Submit a pull request with:
- Clear description of changes
- Screenshots/videos if UI changes
- Updated tests
- Documentation updates
If you need help or have questions:
- Open an issue for component or documentation-related questions
- Join our community discussions
- Review existing components and documentation for examples