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

bitboss-nuxt

v0.0.30

Published

Bitboss Nuxt

Downloads

16

Readme

🎨 BitbossNuxt

npm version License

BitbossNuxt is a powerful Nuxt 3 module that seamlessly integrates Bitboss UI components with enhanced features like form validation, auto-generated icon types, and flexible configuration options.

✨ Features

  • 🚀 Zero-config setup - Works out of the box with sensible defaults
  • 🎯 TypeScript support - Full type safety for components and icons
  • Form validation - Integrated with vee-validate for robust form handling
  • 🎨 Auto-generated icon types - Type-safe icon usage from your SVG assets
  • 🎭 Flexible styling - Configurable stylesheet injection
  • 🔗 Enhanced links - Customizable link component integration
  • 📦 Tree-shakable - Only bundle what you use

📦 Installation

Install the module and its peer dependencies:

npm install bitboss-nuxt bitboss-ui

Validation is disabled by default but if you want to include validated components you need to install peerDependencies as well.

npm install @vee-validate/rules vee-validate fast-equals

Add it to your nuxt.config.ts:

export default defineNuxtConfig({
	modules: ['bitboss-nuxt'],
	bitboss: {
		// Configuration options (see below)
	},
});

⚙️ Configuration

BitbossNuxt enables everything apart from validated components as it aims to facilitate integration of bitboss-ui without being a hurdle to config in itself.

export default defineNuxtConfig({
	modules: ['bitboss-nuxt'],
	bitboss: {
		// Log level for debugging (default: 'INFO')
		logLevel: 'INFO', // 'ERROR' | 'WARN' | 'INFO'

		// Icon configuration
		icons: {
			enabled: true, // Enable/disable icon plugin (default: true)
			path: 'assets/icons', // Path to your SVG icons (default: 'assets/icons') relative to the source folder
		},

		// Styles configuration
		styles: {
			enabled: true, // Enable/disable stylesheet injection (default: true)
			index: 0, // CSS injection order (default: 0) useful to work around reset sheets
		},

		// Link component configuration
		link: {
			enabled: true, // Enable/disable enhanced link component (default: true)
			name: 'NuxtLink', // Component name for the link (default: 'NuxtLink')
		},

		// Component configuration
		components: {
			enabled: true, // Enable/disable component auto-import (default: true)
			validation: false, // Enable validation features (default: false)
		},

		// Composables configuration
		composables: {
			enabled: true, // Enable/disable composable auto-import (default: true)
		},
	},
});

🎨 Disable Features

You can disable any feature by setting it to false:

bitboss: {
  icons: false,        // Disable icons completely
  styles: false,       // Disable styles
  components: false,   // Disable components
  composables: false   // Disable composables
}

🎯 Usage

Icons

BitbossNuxt automatically scans your icon folder and generates TypeScript types for type-safe icon usage:

<template>
	<!-- Type-safe icon usage -->
	<BbButton icon="heart"> Like this </BbButton>

	<!-- Icon in input -->
	<BbTextInput v-model="search" prepend:icon="search" placeholder="Search..." />
</template>

Setup your icons:

  1. Place your SVG files in assets/icons/ (or configure a different path)
  2. The module will automatically generate types for all .svg files
  3. Use icon names without the .svg extension

Form Validation

When validation: true is enabled, all form components automatically integrate with vee-validate:

<template>
	<BbForm @submit="onSubmit">
		<BbTextInput
			v-model="email"
			label="Email"
			rules="required|email"
			placeholder="Enter your email"
		/>

		<BbTextInput
			v-model="password"
			label="Password"
			type="password"
			rules="required|min:8"
			placeholder="Enter your password"
		/>

		<BbButton type="submit" :loading="isSubmitting"> Sign In </BbButton>
	</BbForm>
</template>

<script setup lang="ts">
const email = ref('');
const password = ref('');

const onSubmit = (values) => {
	console.log('Form submitted with:', values);
};
</script>

Available Validated Components

When components.validation is enabled, these components all form control components are available with built-in validation

Enhanced Link Component

The module provides a plugin that enables BaseButton and BbButton to also work like RouterLInk:

<template>
	<BaseButton to="/about">About</BaseButton>
	<BbButton to="/contact" class="btn">Contact</BbButton>
</template>

Advanced Form Example

<template>
	<BbForm @submit="handleSubmit" class="mx-auto max-w-md space-y-4">
		<BbTextInput
			v-model="user.name"
			label="Full Name"
			rules="required|min:2|max:50"
			placeholder="Enter your full name"
			prepend:icon="user"
		/>

		<BbTextInput
			v-model="user.email"
			label="Email Address"
			type="email"
			rules="required|email"
			placeholder="[email protected]"
			prepend:icon="mail"
		/>

		<BbSelect
			v-model="user.country"
			label="Country"
			:options="countries"
			rules="required"
			placeholder="Select your country"
		/>

		<BbCheckboxGroup
			v-model="user.interests"
			label="Interests"
			:options="interestOptions"
			rules="required"
		/>

		<BbSwitch
			v-model="user.newsletter"
			label="Subscribe to newsletter"
			hint="Get the latest updates and news"
		/>

		<div class="flex gap-4">
			<BbButton type="submit" variant="primary" :loading="isSubmitting">
				Create Account
			</BbButton>
			<BbButton type="button" variant="outline" @click="resetForm">
				Reset
			</BbButton>
		</div>
	</BbForm>
</template>

<script setup lang="ts">
const user = reactive({
	name: '',
	email: '',
	country: '',
	interests: [],
	newsletter: false,
});

const countries = [
	{ label: 'United States', value: 'us' },
	{ label: 'Canada', value: 'ca' },
	{ label: 'United Kingdom', value: 'uk' },
];

const interestOptions = [
	{ label: 'Technology', value: 'tech' },
	{ label: 'Design', value: 'design' },
	{ label: 'Business', value: 'business' },
];

const handleSubmit = (values) => {
	console.log('Submitting:', values);
	// Handle form submission
};

const resetForm = () => {
	// Reset form logic
};
</script>

🛠️ API Reference

Configuration Options

logLevel

Controls the verbosity of logging output.

  • Type: 'ERROR' | 'WARN' | 'INFO'
  • Default: 'INFO'
  • Description: Set the minimum log level to display

icons

Configuration for the icon system.

  • Type: false | { enabled?: boolean; path?: string }
  • Default: { enabled: true, path: 'assets/icons' }
  • Description: Configure icon auto-import and type generation

styles

Configuration for stylesheet injection.

  • Type: false | { enabled?: boolean; index?: number }
  • Default: { enabled: true, index: 0 }
  • Description: Control how and when Bitboss UI styles are injected

link

Configuration for the enhanced link component.

  • Type: false | { enabled?: boolean; name?: string }
  • Default: { enabled: true, name: 'NuxtLink' }
  • Description: Configure the link component behavior

components

Configuration for component auto-import.

  • Type: false | { enabled?: boolean; validation?: boolean }
  • Default: { enabled: true, validation: false }
  • Description: Control component availability and validation features

composables

Configuration for composable auto-import.

  • Type: false | { enabled?: boolean }
  • Default: { enabled: true }
  • Description: Enable/disable composable functions

Made with ❤️ by the Bitboss team