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

danger-ui

v0.2.22

Published

Danger UI React Components

Readme

danger-ui

Danger UI React Components

NPM JavaScript Style Guide

Example

https://apodacaduron.github.io/danger-ui/

Install

npm install --save danger-ui

Components

Usage

import React from 'react'

import { MyComponent } from 'danger-ui'
import 'danger-ui/dist/index.css'

const Example = () => {
  return <MyComponent />
}

Button

Props

| Property | Type | Values | Description | Default | | ---------- | ---------- | ------------------------------------------------ | ------------------------------------------ | --------- | | disabled | boolean | true false | Button can be disabled when true | false | | design | string | regular light round transparent border | Different styles for single component | regular | | radius | number | 0 - 50 | Border radius | 10 | | loading | boolean | true false | Disables button and show loading when true | false | | onClick | function | | Triggers function passed | | | block | boolean | true false | Makes width 100% | false |

Input

Props

| Property | Type | Values | Description | Default | | ------------- | --------------------------- | ----------------------- | ---------------------------------------------------- | ------- | | disabled | boolean | true false | Button can be disabled when true | false | | design | string | line solid border | Different styles for single component | solid | | radius | number | 0 - 50 | Border radius | 10 | | animated | boolean | true false | Animates label on focus if true | false | | placeholder | string | | Sets a placeholder text, if animated becomes a label | | | value | string``boolean``number | | Sets input value | | | onChange | function | | | | | onFocus | function | | | | | onBlur | function | | | | | danger | boolean | true``false | Turns de input red | false | | dangerText | string | | Adds text under input | | | block | boolean | true``false | Sets the input to full width | false |

Avatar

Props

| Property | Type | Values | Description | Default | | --------------- | ------------- | -------------- | -------------------------------------------------------------- | ------------ | | size | number | | Changes dimensions of element | 40 | | radius | number | 0 - 50 | Border radius | 10 | | src | string | true false | URL to show avatar | false | | defaultAvatar | string | | URL from a default image | Gravatar url | | alt | string | | Adds alt to img element | | | color | string | | Can take a color code, or use primary color from css variables | primary | | ~~border~~ | ~~boolean~~ | | ~~Not implemented yet~~ | | | text | string | | If theres no src added it will show 2 characters | |

Spinner

Props

| Property | Type | Values | Description | Default | | -------- | -------- | ------ | ----------------------------- | ------- | | size | number | | Changes dimensions of element | 20 | | width | number | | Changes dimensions of element | 1 |

Table

Props

| Property | Type | Values | Description | Default | | --------- | ------- | ------ | ---------------------------------------- | ------- | | columns | array | [] | Maps array and prints it on table header | | | body | | jsx | Pass rows for table | |

Badge

Props

| Property | Type | Values | Description | Default | | -------- | ---- | ------ | ---------------- | ------- | | text | | | Pass jsx or text | |

Select

Props

| Property | Type | Values | Description | Default | | ------------- | --------------------------- | ---------------------------- | -------------------------------------------------------------- | ------- | | disabled | boolean | true false | Button can be disabled when true | false | | design | string | line solid border | Different styles for single component | solid | | radius | number | 0 - 50 | Border radius | 10 | | animated | boolean | true false | Animates label on focus if true | false | | placeholder | string | | Sets a placeholder text, if animated becomes a label | | | value | string``boolean``number | | Sets select value | | | data | array | [{ option: 'Foo', value: 1}] | Takes an array of objects with properties option and value | | | onChange | function | | | | | onFocus | function | | | | | onBlur | function | | | | | danger | boolean | true``false | Turns de input red | false | | dangerText | string | | Adds text under input | | | block | boolean | true``false | Sets the input to full width | false |

Alert

Props

| Property | Type | Values | Description | Default | | ---------- | ---------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------- | ------------ | | children | jsx | | Takes in any jsx element | | | color | string | | If not set will use primary color, or use any color format | primary | | position | string | top-left``top-center``top-right``bottom-left``bottom-center``bottom-right | Changes position of alert on the screen | top-center | | visible | boolean | true``false | Displays the alert | false | | onClick | function | | Execute passed function | |

Modal

Props

| Property | Type | Values | Description | Default | | ------------ | ---------- | --------------- | ---------------------------------------------------------- | ------- | | visible | boolean | true``false | Displays the modal component | false | | header | jsx | | Displays on top of modal component | | | footer | jsx | | Displays in bottom of modal component | | | children | jsx | | Display on the center of modal component | | | onClickOut | function | | Executes function when click background of modal component | |

FormGroup

Props

| Property | Type | Values | Description | Default | | ---------- | ----- | ------ | ------------------------ | ------- | | children | jsx | | Takes in any jsx element | |

License

MIT © apodacaduron