New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@leafygreen-ui/badge

Package Overview
Dependencies
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/badge

leafyGreen UI Kit Badge

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Badge

npm (scoped)

Example

  <Badge
    variant='lightBlue'
    className='my-badge'
  >
    New
  </Badge>

Output HTML

  <span class="leafygreen-ui-rhgfxf my-badge">New</span>

Properties

variant

Type: string

Default: 'default'

Sets the style variant of the badge. Valid variants for badges are 'default', 'danger', 'warning', 'darkBlue', 'lightBlue', 'primary', 'outline', and 'dark'.

className

Type: string

Default: ''

Adds a className to the class attribute.

children

Type: node

Default: null

The content that will appear inside of the <Badge /> component.

Any other properties will be spread on the root element.

Note: Specifying the onClick attribute will change the cursor style to pointer.

FAQs

Package last updated on 22 May 2019

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