Open source collection of copy/paste components built with Polaris, Shopify's design system
Open source collection of copy/paste components built with Polaris, Shopify's design system
A collection of components for Shopify app developers, based on the Polaris UI library & design system
This repository contains a collection of reusable Polaris components that you can copy and use in your Shopify app. Each component:
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/components/library/YourComponent/yarn generate-tabs to generate code displayLayout.tsxSee 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 exportsyarn 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:
This project uses an automated system for displaying code:
tabs.config.json listing files to showyarn generate-tabs to read files and generate display codeNo manual copy/paste or string duplication needed!
Components should:
See CONTRIBUTING.md for full guidelines.
Contributions are welcome! Please read our contributing guide to get started.
Before submitting a PR:
yarn generate-tabs runs successfullyyarn build succeedsLicensed 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
No open issues yet, or sync has not completed.