A professional, production-ready Vue 3 component library built with modern web standards.
npm install mms-component-libA professional, production-ready Vue 3 component library built with modern web standards.
โจ What Makes It Special:
- ๐ Smart auto-import system for seamless development
- ๐จ Consistent design system with CSS custom properties
- ๐ Interactive documentation with copy-paste code examples
- ๐ก๏ธ Full TypeScript support with perfect IntelliSense
- โก Tree-shaking friendly - import only what you need
- ๐งช Accessibility-first approach with ARIA support
| Component | Description | Key Features |
|-----------|-------------|--------------|
| Button | Versatile action component | 5 variants ร 5 colors = 25 combinations |
| DataTable | Powerful data display | Sorting, filtering, pagination ready |
| Carousel | Image/content slider | Touch-friendly, responsive, auto-play |
| Sidebar | Navigation component | Collapsible, floating, keyboard shortcuts |
| + 9 More | Input, Sheet, Tooltip, etc. | Complete UI foundation |
``bash`
npm install mms-component-lib
javascript
import { createApp } from 'vue'
import MMSComponentLib from 'mms-component-lib'
import 'mms-component-lib/style.css' // or 'mms-component-lib/dist/style.css'const app = createApp(App)
app.use(MMSComponentLib)
`$3
`javascript
import { BaseButton, BaseCard } from 'mms-component-lib'
import 'mms-component-lib/style.css'// In your component
export default {
components: { BaseButton, BaseCard }
}
`$3
`typescript
import { BaseButton, type ButtonProps } from 'mms-component-lib'// Full IntelliSense support for props
const buttonProps: ButtonProps = {
variant: 'primary', // IntelliSense will show available options
size: 'md',
disabled: false
}
`$3
`vue
Click me!
`๐งฉ Available Components
- BaseButton - Flexible button with multiple variants (primary, secondary, outline, ghost)
๐ ๏ธ Development
`bash
Development
npm run dev # Start dev server
npm run storybook # Component documentationBuild
npm run build # Build for production
`$3
`bash
npm run generate:component # Create new component
npm run delete:component # Delete component (with confirmation)
npm run delete:component -f # Force delete (no confirmation)
npm run list:components # List all components with status
``๐ ๏ธ Development
$3
`bash
Auto-generates Vue component, CSS, and Storybook story
npm run generate:component MyNewComponentExample: Create BaseAlert component
npm run generate:component BaseAlert
`$3
`bash
Run dev server with auto-import watching
npm run dev:watchOr run separately
npm run dev # Start Vite dev server
npm run watch:imports # Watch for component changes
`๐ Project Structure
`
src/components/
โโโ BaseButton/
โ โโโ BaseButton.vue # Vue component with TypeScript
โ โโโ BaseButton.css # Component-specific Tailwind styles
โ โโโ BaseButton.stories.ts # Storybook documentation
โโโ BaseCard/
โ โโโ BaseCard.vue
โ โโโ BaseCard.css
โ โโโ BaseCard.stories.ts
โโโ index.ts # Auto-generated imports and exports
`Each component lives in its own directory with all related files grouped together. The
index.ts file is automatically maintained by the build scripts.๐ Release Process
This project uses Changeset with development and production versioning:
$3
`bash
npm run workflow # Interactive workflow selector
npm run workflow:dev # Development release (beta)
npm run workflow:prod # Production release (stable)
`$3
Development Release (Pre-release)
`bash
npm run changeset # Create changeset
npm run changeset:pre:enter beta # Enter pre-release mode
npm run changeset:version # Version to beta (e.g., 1.0.0-beta.1)
npm run release:beta # Publish with @beta tag
`Production Release (Stable)
`bash
npm run changeset # Create changeset
npm run changeset:pre:exit # Exit pre-release mode (if active)
npm run changeset:version # Version to stable (e.g., 1.0.0)
npm run release:prod # Publish with @latest tag
`$3
- Development: 1.0.0-beta.1, 1.0.0-alpha.1 (install with @beta or @alpha)
- Production: 1.0.0, 1.0.1, 1.1.0 (install with @latest` or no tag)- DEVELOPMENT-GUIDE.md - Complete development, versioning, and collaboration guide
- CHANGELOG.md - Auto-generated changelog
MIT License - see LICENSE file for details.