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

@bcc-code/component-library-vue

v0.4.1

Published

Extended Vue component library based on PrimeVue and BCC design tokens

Readme

@bcc-code/component-library-vue

Vue 3 component library built on PrimeVue and BCC design tokens. You only need this package—no separate Tailwind or PrimeVue install.

View on with Storybook

Install

pnpm add @bcc-code/component-library-vue
# or
npm install @bcc-code/component-library-vue
# or
yarn add @bcc-code/component-library-vue

Peer dependency: Vue 3.

Quick start

  1. Register the library in your app (e.g. main.ts):
import { createApp } from 'vue';
import App from './App.vue';
import { BccComponentLibrary } from '@bcc-code/component-library-vue';

const app = createApp(App);
app.use(BccComponentLibrary);
app.mount('#app');
  1. Add styles using one of the two options below.

Styling: two options

Option 1 — Recommended: full Tailwind in your app

Use this if you want Tailwind utility classes in your own templates and only ship the classes you use (tree-shaking).

  1. Add the Tailwind Vite plugin (the package brings Tailwind in as a dependency; you only wire it up):
// vite.config.ts
import tailwindcss from '@tailwindcss/vite';

export default defineConfig({
	plugins: [vue(), tailwindcss()],
	// ...
});
  1. Import the theme in your main CSS file (e.g. src/main.css or src/assets/main.css):
@import '@bcc-code/component-library-vue/theme.css';

Tailwind will run as part of your build and only include the utility classes that appear in your app and in the library.

Option 2 — Pre-built CSS only

Use this if you don’t want Tailwind in your project and only need the library’s styles and components.

In your entry file (e.g. main.ts), before mounting the app:

import '@bcc-code/component-library-vue/style.css';

You get the BCC theme and component styles only; no Tailwind utilities in your app.


Using components

All components are namespaced with Bcc. Use them in templates or register them globally after app.use(BccComponentLibrary).

Example:

<template>
	<div class="flex gap-4 p-4">
		<BccButton label="Save" />
		<BccInput v-model="name" placeholder="Name" />
	</div>
</template>

<script setup lang="ts">
import { BccButton, BccInput } from '@bcc-code/component-library-vue';
import { ref } from 'vue';

const name = ref('');
</script>

Setup

// main.ts
import { BccComponentLibrary } from '@bcc-code/component-library-vue';

const app = createApp(…)
BccComponentLibrary(app);
/* styles.css */
@import '@bcc-code/component-library-vue/theme.css';

/* Optional include the archivo font */
@import '@bcc-code/component-library-vue/archivo-font.css';
font-family:
	Archivo,
	system-ui,
	-apple-system,
	BlinkMacSystemFont,
	'Segoe UI',
	'Open Sans',
	sans-serif;

The library exports both custom BCC components (e.g. BccBadge, BccFrame, BccReact) and wrapped PrimeVue components (e.g. BccButton, BccDialog, BccDataTable). PrimeVue services (Toast, Confirm, Dialog) are configured by BccComponentLibrary; use the composables useToast, useConfirm, and useDialog from the library when you need them.


Development

pnpm install
pnpm run start        # Storybook on port 6006
pnpm run build        # Typecheck, types, and Vite build
pnpm run build:vite   # Vite build only (includes theme.css)

License

Apache-2.0