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

bmlibrary

v0.0.8

Published

fyi = bm is buma :)

Downloads

48

Readme

BmLibrary

fyi = bm is buma :)

Hi this component using vue 3 + typescript.

| Component | | :------------- | | BmButton | | BmModal | | BmPagination | | BmRadioGroup | | BmMultiple |

Instalation

  • npm install bmlibrary
import { BmRadioGroup, BmModal } from 'bmlibrary'

<BmButton label="evan" />

Description

BUTTON

API

| Property | Description | Type | Default | | :----------- | :--------------------------------------------------------------------- | :------ | :------ | | Type | Set the button type, options include ( primary , secondary, tertiary ) | String | primary | | outline | Set button to outlined style | Boolean | false | | icon | Set the icon model | String | null | | icon-align | Set the icon align, options include ( left , right) | String | left | | disabled | Set the button to disabled | Boolean | false | | icon-only | Set the button to icon only | Boolean | false |

Usage / Examples

Button with type

<BmButton label="example" type="primary" />

Button with outline

<BmButton label="example" type="primary" outline />

Button with icon

<BmButton label="example" type="primary" icon="kiw" outline />

Button with icon allign

<BmButton label="example" type="primary" icon="kiw" icon-align="left" outline />

Button with text-line style

<BmButton label="example" icon="kiw" icon-align="left" outline text-line />

Button with using icon only

<BmButton icon="kiw" icon-only />

Button disabled

<BmButton label="example" disabled />

PAGINATION

API

| Property | Description | Type | Default | | :-------------------- | :----------------------------- | :----- | :------ | | title | Set the title pagination | String | null | | items | Set the total items | Number | 0 | | itemsPerPageOptions | Set the items per page options | [] |

Modal Event

| Event Name | Description | | :------------ | :------------------------------------- | | pagechanged | Function for pagechanged, Only emitted |

Usage / Examples

Pagination

<BmPagination title="example" :items="50" :itemsPerPageOptions="[2,5,6]" v-model:currentPage="currentPage" @pagechanged="onPageChange" />

<script lang="ts" setup>

const currentPage = ref(1)
const onPageChange = (page: any) => {
    currentPage.value = page;
}

<script>

RADIO GROUP

API

| Property | Description | Type | Default | | :-------- | :------------------------------------------------------------- | :----- | :------- | | label | Set the title Radio | String | null | | layout | Set the Radio layout, options include ( horizontal, vertical ) | String | vertical | | options | Set the radio options | Array | [] |

Usage / Examples


<BmRadioGroup label="evan" layout="horizontal" :options="radioOptions" v-model="selectedRadio" />

<script lang="ts" setup>

const radioOptions= ref([
             { label: 'Option 1', value: 'option1' },
            { label: 'Option 2', value: 'option2' },
            { label: 'Option 3', value: 'option3' },
            { label: 'Option 4', value: 'option4' },
            { label: 'Option 5', value: 'option5' },
            { label: 'Option 6', value: 'option6' },
       ])

const selectedRadio = ref('')

<script>

MODAL

API

| Property | Description | Type | Default | | :-------------- | :------------------------------------------------------------------------ | :------ | :------ | | size | Set the button type, options include (small, medium, large, pwa, pwa-v2 ) | String | medium | | image-modal | Display for image modal | Boolean | false | | labelBtnLeft | Label for left button | String | null | | labelBtnRight | Label for Right button | String | null |

Modal Event

| Event Name | Description | | :------------ | :--------------------------------------- | | l-btn | Function for left Button, Only emitted | | r-btn | Function for Right Button , Only emitted | | close-modal | Function for close modal |

Usage / Examples

Modal with size

<BmModal size="small" />

Modal with using image-modal

<BmModal>
    <template #imageModal>
        <!-- create your want -->
    </template>
</BmModal>

Modal with function

<BmModal
  v-if="isModal"
  @closeModal="closeModal"
  size="small"
  @l-btn="leftButton"
  @r-btn="leftButton"
  image-modal
  labelBtnLeft="label"
  labelBtnRight="close"
>
            <template #imageModal>
                <img src="@/assets/img/ilustration-modal.svg" />
            </template>
 </BmModal>

MULTIPLE SELECT

API

| Property | Description | Type | Default | | :--------- | :-------------- | :------ | :------ | | label | Set the labe | String | null | | items | Set the option | Array | [] | | required | Set to required | Boolean | false | | disabled | Set to disabled | Boolean | false |

Usage / Examples

<BmMultiple
    label="example" v-model="selectedValues" :items="selectedOptions" required
/>

<script lang="ts" setup>

 const selectedOptions = ref([
        { label: 'Option 1 ', value: 'option 1' },
        { label: 'Option 2 ', value: 'option 2' },
        { label: 'Option 3 ', value: 'option 3' },
        { label: 'Option 4', value: 'option 4' },
        { label: 'Option  5', value: 'option 5' },
        { label: 'Option  5', value: 'option 5' },
        { label: 'Option  5', value: 'option 5' },

])

const selectedValues = ref([])

<script>