A collection of components for Shopify app developers, based on the Polaris UI library & design system
- Contributing Guide - Complete guide for contributors
- Quick Start - Get your first component running in 5 minutes
- Development Workflow - Daily development processes
- Migration Guide - Understanding the architecture
This repository contains a collection of reusable Polaris components that you can copy and use in your Shopify app. Each component:
- ✅ Built with official Shopify Polaris components
- ✅ Follows Polaris design guidelines
- ✅ Ready to copy/paste into your project
- ✅ Includes working examples
- ✅ Displays actual source code
Want to add your own component? It's easy!
# 1. Fork and clone
git clone https://github.com/YOUR-USERNAME/polaris-components.git
cd polaris-components
# 2. Install and run
yarn install
yarn dev
# 3. Create your component
# See QUICKSTART.md for step-by-step guide- Create component files in
/components/library/YourComponent/ - Add tabs.config.json listing files to display
- Run
yarn generate-tabsto generate code display - Add to navigation in
Layout.tsx - Test and submit PR!
See CONTRIBUTING.md for detailed instructions.
components/
└── library/
└── ComponentName/
├── Preview/
│ ├── ComponentName.jsx # Component implementation
│ ├── Example.jsx # Usage example
│ └── index.ts # Exports
├── tabs.config.json # Config for code display
└── index.ts # Main exports
yarn dev # Start development server
yarn build # Build for production
yarn generate-tabs # Generate code display tabs
yarn lint # Run ESLintComponents are stored under /components/library. Each component has:
- Preview: The rendered component example
- Code Tabs: Actual source code files (auto-generated)
- Copy Button: One-click copy to clipboard
This project uses an automated system for displaying code:
- Create
tabs.config.jsonlisting files to show - Run
yarn generate-tabsto read files and generate display code - Code tabs automatically show your actual component source
No manual copy/paste or string duplication needed!
Components should:
- Use Polaris components primarily
- Follow Polaris design patterns
- Be copy/paste friendly (prefer inline styles)
- Include clear usage examples
- Work standalone in other projects
See CONTRIBUTING.md for full guidelines.
Contributions are welcome! Please read our contributing guide to get started.
Before submitting a PR:
- Component follows Polaris guidelines
-
yarn generate-tabsruns successfully - Component added to navigation
- Tested in browser
- Code tested by copying to fresh Polaris project
-
yarn buildsucceeds
- Bug reports: GitHub Issues
- Questions: GitHub Discussions
- Twitter/X: @devwithalex
Licensed under the MIT license.
Thanks to all our contributors! See component pages for individual contributor credits.
Want to be listed here? Contribute a component!
Made with ❤️ for the Shopify developer community