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

smd-kit

v1.1.3

Published

- [Angular](https://angular.dev/) - [Ionic](https://ionicframework.com/docs/)

Readme

Smd-kit

Dependencies

Installation

npm install smd-kit

Configuration

Add styles in angular.json
{
  "styles": [
    "node_modules/smd-kit/src/lib/smd.scss"
  ]
}
Import SmdModule in component module
import {SmdModule} from 'smd-kit';

@NgModule({
  imports: [SmdModule],
  declarations: [AppComponent]
})
export class AppModule {
}

Components

Avatar


<smd-avatar></smd-avatar>

Properties

| Attribute | Type | Default | |:----------|:---------------------|-------------| | picture | stringundefined | undefined |

Badge


<smd-badge></smd-badge>

Properties

| Attribute | Type | Default | |:----------|:--------------------------------------------------------------------------------|-----------| | type | dotdigit | digit | | color | primarysuccesserrorwarninginfomediumlightdark | primary |

Button


<smd-button></smd-button>

Properties

| Attribute | Type | Default | |:----------|:--------------------------------------------------------------------------------|-------------| | type | clearoutlinesoliddefaultundefined | undefined | | expand | blockfullundefined | undefined | | size | smallmediumlarge | medium | | color | primarysuccesserrorwarninginfomediumlightdark | primary | | disabled | boolean | false |

Events

| Name | Description | |:---------|:------------------------------------------| | smdBlur | Emitted when the button loses focus. | | smdFocus | Emitted when the button has focus. | | smdClick | Emitted when the button has been clicked. |

Checkbox


<smd-checkbox></smd-checkbox>

Properties

| Attribute | Type | Default | |:-----------------|:--------------------------------|-----------------| | justify | endspace-betweenstart | space-between | | labelPlacement | endfixedstackedstart | start | | alignment | startcenter | center | | indeterminate | boolean | false | | disabled | boolean | false | | helperText | stringundefined | undefined | | isIncorrectValue | boolean | false |

Events

| Name | Description | |:---------|:---------------------------------------| | smdBlur | Emitted when the checkbox loses focus. | | smdFocus | Emitted when the checkbox has focus. |

Helper


<smd-helper></smd-helper>

Properties

| Attribute | Type | Default | |:----------|:--------------------------------------------------------------------------------|-------------| | icon | stringundefined | undefined | | color | primarysuccesserrorwarninginfomediumlightdark | primary |

Icon

List of all icons: https://phosphoricons.com/


<smd-icon></smd-icon>

Properties

| Attribute | Type | Default | |:----------|:--------------------------------------------------------------------------------|---------| | name | string | | | color | primarysuccesserrorwarninginfomediumlightdark | dark |

CSS Custom Properties

| Name | Description | |:---------------------|:------------------------| | --smd-icon-size | Font size of the icon | | --smd-icon-weight | Font weight of the icon |

Input


<smd-input></smd-input>

Properties

| Attribute | Type | Default | |:-----------------|:------------------------------------------------------------------------------------------------------|-------------| | label | string | | | placeholder | string | | | type | datedatetime-localemailmonthnumberpasswordsearchteltexttimeurlweek | text | | inputmode | decimalemailnonenumericsearchteltexturlpasswordundefined | undefined | | autocapitalize | string | off | | passwordToggle | boolean | false | | disabled | boolean | false | | helperText | stringundefined | undefined | | isIncorrectValue | boolean | false |

Events

| Name | Description | |:---------|:------------------------------------| | smdBlur | Emitted when the input loses focus. | | smdFocus | Emitted when the input has focus. |

List action


<smd-list-action></smd-list-action>

Properties

| Attribute | Type | Default | |:----------|:--------------------------------------------------------------------------------|-----------| | color | primarysuccesserrorwarninginfomediumlightdark | primary |

Searchbar


<smd-searchbar></smd-searchbar>

Properties

| Attribute | Type | Default | |:------------|:----------|------------| | placeholder | string | "Buscar" | | setFocus | boolean | false |

Events

| Name | Description | |:---------|:------------------------------------------------| | smdBlur | Emitted when the input loses focus. | | smdFocus | Emitted when the input has focus. | | smdClear | Emitted when the clear input button is clicked. | | smdCancel | Emitted when the cancel button is clicked. |

Tag


<smd-tag></smd-tag>

Properties

| Attribute | Type | Default | |:----------|:--------------------------------------------------------------------------------|-------------| | icon | stringundefined | undefined | | type | containedoutlined | contained | | color | primarysuccesserrorwarninginfomediumlightdark | primary | | disabled | boolean | false |

Textarea


<smd-textarea></smd-textarea>

Properties

| Attribute | Type | Default | |:-----------------|:------------------------------------------------------------------------------------------------------|-------------| | label | string | | | placeholder | string | | | type | datedatetime-localemailmonthnumberpasswordsearchteltexttimeurlweek | text | | inputmode | decimalemailnonenumericsearchteltexturlpasswordundefined | undefined | | autocapitalize | string | off | | rows | numberundefined | undefined | | cols | numberundefined | undefined | | autoGrow | boolean | false | | disabled | boolean | false | | helperText | stringundefined | undefined | | isIncorrectValue | boolean | false |

Events

| Name | Description | |:---------|:---------------------------------------| | smdBlur | Emitted when the textarea loses focus. | | smdFocus | Emitted when the textarea has focus. |

Toggle


<smd-toggle></smd-toggle>

Properties

| Attribute | Type | Default | |:-----------------|:--------------------------------|-----------------| | justify | endspace-betweenstart | space-between | | labelPlacement | endfixedstackedstart | start | | alignment | startcenter | center | | disabled | boolean | false | | helperText | stringundefined | undefined | | isIncorrectValue | boolean | false |

Events

| Name | Description | |:---------|:-------------------------------------| | smdBlur | Emitted when the toggle loses focus. | | smdFocus | Emitted when the toggle has focus. |

Alert

Animations.
  • enterAnimation
  • leaveAnimation

NOTE: The animations are in an external service

Buttons
  • Principal button:

    • role: destructive
  • Cancel button:

    • role: cancel
const alert = await this.alertCtrl.create({
  enterAnimation: this.animationsService.showAlertAnimation,
  leaveAnimation: this.animationsService.hideAlertAnimation,
  header: 'Alert!',
  buttons: [
    {
      text: 'Cancel',
      role: 'cancel',
    },
    {
      text: 'OK',
      role: 'destructive',
    }
  ]
});

await alert.present();

Action sheet

Buttons
  • Principal button:

    • role: principal
  • Cancel button:

    • text: empty text
    • role: cancel
const actionSheet = await this.actionSheetCtrl.create({
  header: 'Options',
  buttons: [
    {
      text: 'Share',
    },
    {
      text: 'Delete all',
      role: 'principal',
    },
    {
      text: '',
      role: 'cancel',
    }
  ]
});

await actionSheet.present();

Toast

Icons

The icons shown are from ionic. For a list of all available icons, see https://ionic.io/ionicons.

Color

The color to use, it must establish the class smd-color-${color}

Buttons

  • Cancel button:
    • text: empty text
    • icon: close
    • role: cancel
const toast = await this.toastCtrl.create({
  header: 'Hello world!',
  message: 'Show toast during 3 seconds',
  icon: 'warning-outline',
  duration: 3000,
  position: 'top',
  cssClass: `smd-color-warning`,
  buttons: [
    {
      text: '',
      icon: 'close',
      role: 'cancel',
    }
  ]
});

await toast.present();