npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

itc-common-component-package

v0.0.2

Published

A collection of reusable Vue 3 components built with Quasar Framework.

Downloads

5

Readme

itc-common-component-package

A collection of reusable Vue 3 components built with Quasar Framework.

📦 Installation

npm install itc-common-component-package

Peer Dependencies

This package requires the following peer dependencies:

  • vue: ^3.0.0
  • quasar: ^2.0.0

Make sure these are installed in your project:

npm install vue quasar

🚀 Quick Start

Prerequisites

Ensure you have Vue 3 and Quasar installed:

npm install vue@^3.0.0 quasar@^2.0.0 @quasar/extras

Setup Quasar in Your Project

In your main.js or main.ts:

import { createApp } from 'vue'
import { Quasar } from 'quasar'

// Import Quasar styles
import '@quasar/extras/material-icons/material-icons.css'
import 'quasar/dist/quasar.css'

import App from './App.vue'

const app = createApp(App)

app.use(Quasar, {
  plugins: {}
})

app.mount('#app')

💡 Usage

As a Plugin (Global Registration)

import { createApp } from 'vue'
import { Quasar } from 'quasar'
import ItcComponents from 'itc-common-component-package'

import 'quasar/dist/quasar.css'

const app = createApp(App)

app.use(Quasar, { /* quasar options */ })
app.use(ItcComponents)

app.mount('#app')

Individual Component Import (Recommended)

Most users will use this by importing directly into the page/component where it's needed:

<template>
  <div>
    <MyButton label="Click Me" />
    <MyCard>
      <p>Card content goes here</p>
    </MyCard>
  </div>
</template>

<script setup>
import { MyButton, MyCard } from 'itc-common-component-package'
</script>

📖 Examples

Basic Button Usage

<template>
  <MyButton label="Submit" />
</template>

<script setup>
import { MyButton } from 'itc-common-component-package'
</script>

Basic Card Usage

<template>
  <MyCard>
    <p>Card body content</p>
  </MyCard>
</template>

<script setup>
import { MyCard } from 'itc-common-component-package'
</script>

Combined Usage

<template>
  <MyCard>
    <h3>Card Title</h3>
    <p>Some description text</p>
    <MyButton label="Action Button" />
  </MyCard>
</template>

<script setup>
import { MyCard, MyButton } from 'itc-common-component-package'
</script>

📋 API Reference

MyButton

A button component built on top of Quasar's q-btn component with primary color styling.

Props

| Prop | Type | Required | Default | Description | |------|------|----------|---------|-------------| | label | string | ✅ Yes | - | The button label text |

Example

<template>
  <MyButton label="Submit" />
  <MyButton label="Cancel" />
  <MyButton label="Delete" />
</template>

<script setup>
import { MyButton } from 'itc-common-component-package'
</script>

MyCard

A flexible card component with default padding and styling, built on top of Quasar's q-card component.

Props

This component does not accept any props. Use slots to customize content.

Slots

| Slot | Description | |------|-------------| | default | Main card content |

Example

<template>
  <!-- Basic usage -->
  <MyCard>
    <p>Card body content</p>
  </MyCard>

  <!-- With multiple elements -->
  <MyCard>
    <h3>Title</h3>
    <p>Description</p>
    <MyButton label="Action" />
  </MyCard>

  <!-- With custom styling -->
  <MyCard>
    <div class="custom-content">
      <p>Custom styled content</p>
    </div>
  </MyCard>
</template>

<script setup>
import { MyCard, MyButton } from 'itc-common-component-package'
</script>

🔧 Development

Setup

# Install dependencies
npm install

# Build the library
npm run build

Project Structure

itc-common-component-package/
├── src/
│   ├── components/
│   │   ├── MyButton.vue
│   │   └── MyCard.vue
│   └── index.ts          # Main export file
├── dist/                 # Build output
├── package.json
├── tsconfig.json
└── vite.config.ts

Build

The package is built using Vite and generates:

  • UMD bundle: dist/vue-quasar-components.umd.js
  • ES module: dist/vue-quasar-components.es.js
  • TypeScript declarations: dist/index.d.ts and component .d.ts files

📝 TypeScript Support

Full TypeScript support is included. Type definitions are automatically available when you import the component.

import { MyButton, MyCard } from 'itc-common-component-package'
// TypeScript will provide autocomplete for all props and events

📦 Publishing

  1. Update version in package.json
  2. Build the package: npm run build
  3. Login to npm: npm login
  4. Publish: npm publish --access public

Published package will be accessible via https://www.npmjs.com/package/itc-common-component-package.

📄 License

ISC

👤 Author

Created by Roja