Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@dd-test/bdge

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dd-test/bdge

leafyGreen UI Kit Badge

latest
npmnpm
Version
4.0.3
Version published
Maintainers
1
Created
Source

Badge

npm (scoped)

View on MongoDB.design

Installation

Yarn

yarn add @leafygreen-ui/badge

NPM

npm install @leafygreen-ui/badge

Example

import Badge from '@leafygreen-ui/badge';

<Badge variant="blue" className="my-badge">
  New
</Badge>;

Output HTML

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

Properties

PropTypeDescriptionDefault
variant'lightgray', 'darkgray', 'red', 'blue', 'green', 'yellow'Sets the style variant of the badge.'lightgray'
classNamestringAdds a className to the class attribute
childrennodeThe content that will appear inside of the <Badge /> component.
...native div attributesAny other props will be spread on the root div element

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

FAQs

Package last updated on 21 Apr 2021

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