🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

bpk-component-badge

Package Overview
Dependencies
Maintainers
7
Versions
484
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpk-component-badge

Backpack badge component.

6.0.1
latest
Source
npm
Version published
Maintainers
7
Created
Source

bpk-component-badge

Backpack badge component.

Installation

npm install bpk-component-badge --save-dev

Usage

import React from 'react';
import BpkBadge, { BADGE_TYPES } from 'bpk-component-badge';

export default () => (
  <BpkBadge
    type={BADGE_TYPES.warning}
  >
    My Badge
  </BpkBadge>
);

Props

PropertyPropTypeRequiredDefault Value
centeredboolfalsenull
classNamestringfalsenull
dockedoneOf('left', 'right')falsenull
typeoneOf(BADGE_TYPES.warning, BADGE_TYPES.success, BADGE_TYPES.destructive, BADGE_TYPES.light, BADGE_TYPES.inverse, BADGE_TYPES.outline, BADGE_TYPES.strong)falseBADGE_TYPES.warning

Theme props

  • badgeBackgroundColor
  • badgeSuccessBackgroundColor
  • badgeDestructiveBackgroundColor

FAQs

Package last updated on 30 Sep 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