Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@asphalt-react/badge

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asphalt-react/badge

Badge

  • 2.0.0-alpha.3
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Badge

Badges are used to inform about status or show a numerical value in proximity to notifications or any action that has been taken.

There are 2 types of badges

  1. Strong
  2. Light

Use a strong badge to denote quantity, use a light badge to seek mild attention. Both types offer different support variants namely danger, warning, info and success which are available as props.

Badge renders danger variation by default for both Strong and Light badges.

Usage

import Badge from "@asphalt-react/badge"

// Strong badge
<Badge value={29} />

// Light badge
<Badge />

Props

value

Numeric value displayed in badge.

typerequireddefault
unionfalsenull

danger

Applies danger styles

typerequireddefault
boolfalsefalse

warning

Applies warning styles

typerequireddefault
boolfalsefalse

info

Applies info styles

typerequireddefault
boolfalsefalse

success

Applies success styles

typerequireddefault
boolfalsefalse

Keywords

FAQs

Package last updated on 19 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc