Requirements
Before installing, ensure you have:- Vue 3 application
- Node.js 18 or higher
- vue-i18n plugin for translations
Install the Package
Install the component library and its peer dependencies:Import Styles
Import the required CSS files in your application’s root file (e.g.,main.ts or main.js):
The
font.css import includes the Inter font family, which is used throughout the Shopware administration.Configure Vue i18n
The component library requires the Vue i18n plugin for translations. Configure it in your application:main.ts
The component library includes English (
en-GB) and German (de-DE) translations by default. For other languages, you’ll need to add custom snippets.Complete Setup Example
Here’s a complete example of setting up your Vue application with the Meteor Component Library:main.ts
Using Components
Each component can be imported independently from the package root:Single Component Import
Multiple Components
TypeScript Support
The component library includes full TypeScript definitions. No additional@types packages are required.
Peer Dependencies
The component library has a peer dependency on:@shopware-ag/meteor-icon-kit- Icon system (automatically installed if using workspace)
Tree Shaking
The library is optimized for tree-shaking. When you import specific components, only those components and their dependencies are included in your bundle:Verification
Verify your installation by creating a simple test component:App.vue
Next Steps
Component Overview
Explore all available components
Form Components
Learn about form inputs and controls
Storybook
View interactive component examples
Design System
Explore the Meteor Design System
Troubleshooting
Components are not styled correctly
Components are not styled correctly
Make sure you’ve imported both CSS files:These imports should be in your main application file before any component usage.
Translation warnings in console
Translation warnings in console
The component library requires vue-i18n to be configured. Ensure you’ve created and registered the i18n instance:
TypeScript errors for component props
TypeScript errors for component props
Make sure you’re using TypeScript 5.0 or higher. The library includes full type definitions at:
Icons are not showing
Icons are not showing
If icons aren’t displaying, you may need to install the icon kit peer dependency: