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

@bootcn-vue/buttons

v0.4.0

Published

Accessible, customizable Button components built with Bootstrap 5 and Vue 3

Readme

@bootcn-vue/buttons

Accessible, customizable Button components built with Bootstrap 5 and Vue 3.

npm version License: MIT

📚 Documentation

View Components & Examples - Interactive Storybook

Installation

Using CLI (Recommended)

# Add button component to your project
npx @bootcn-vue/cli add button

This copies the component directly to your src/components/ui/Button/ directory, giving you full control to customize it.

Direct Installation

npm install @bootcn-vue/buttons @bootcn-vue/core reka-ui bootstrap

Features

  • All Bootstrap Variants - primary, secondary, success, danger, warning, info, light, dark
  • 🎨 Outline Variants - outline-primary, outline-secondary, etc.
  • 📏 Multiple Sizes - sm, md, lg
  • Accessible - Built on Reka UI for proper accessibility
  • 🔧 Customizable - Full control when using CLI
  • Loading State - Built-in spinner support
  • 🎯 TypeScript - Full type safety

Usage

With CLI (Copy-Paste Approach)

# Initialize bootcn-vue
npx @bootcn-vue/cli init

# Add button component
npx @bootcn-vue/cli add button

Then use it in your Vue component:

<script setup lang="ts">
import { Button } from "@/components/ui/Button";
</script>

<template>
  <Button variant="primary" size="lg"> Click me! </Button>
</template>

Direct Import (npm package)

<script setup lang="ts">
import { Button } from "@bootcn-vue/buttons";
</script>

<template>
  <Button variant="primary" size="lg"> Click me! </Button>
</template>

Examples

Basic Variants

<Button variant="primary">Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="success">Success</Button>
<Button variant="danger">Danger</Button>

Outline Variants

<Button variant="outline-primary">Outline Primary</Button>
<Button variant="outline-secondary">Outline Secondary</Button>

Sizes

<Button size="sm">Small</Button>
<Button size="md">Medium</Button>
<Button size="lg">Large</Button>

Loading State

<Button :loading="true">Loading...</Button>

As Link

<Button as="a" href="/about">Link Button</Button>

Custom Class

<Button class="my-custom-class">Custom Button</Button>

Props

interface Props {
  variant?:
    | "primary"
    | "secondary"
    | "success"
    | "danger"
    | "warning"
    | "info"
    | "light"
    | "dark"
    | "outline-primary"
    | "outline-secondary"
    | "outline-success"
    | "outline-danger"
    | "outline-warning"
    | "outline-info"
    | "outline-light"
    | "outline-dark"
    | "link";
  size?: "sm" | "md" | "lg";
  loading?: boolean;
  class?: string;
  as?: string | Component; // Render as different element
  asChild?: boolean; // Use child element as root
}

Dependencies

  • @bootcn-vue/core - Core utilities
  • reka-ui - Accessible primitives

Peer Dependencies

  • vue ^3.5.0
  • bootstrap ^5.3.0

Links

Related Packages

License

MIT © Shashank Shandilya