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

@talixo/badge

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@talixo/badge

UI component for badge

  • 1.0.0-alpha.27
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Talixo Badge

Simple badge component

How to install

Package is available as @talixo/badge in NPM registry, so you can use it in your project using npm install @talixo/badge --save or yarn add @talixo/badge.

Requirements

Your package should additionally have some extra dependencies:

  • @talixo/shared: ^1.0.0-alpha.24
  • prop-types: ^15.6.1
  • react: ^16.2.0
  • react-dom: ^16.2.0

These packages are required by @talixo/badge, but you have to install them manually, to avoid having different versions of these in your application.

Supported props

It allows any props which are allowed for span. Additionally, it handles some differently:

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
childrennoden/anode element to display inside badge
pillboolfalseshould this badge be a pill?
onRemovefunctionn/ahandler for clicking on "remove" button (which will be shown when handler is used)
removeTextnode×content of "remove" button

Changelog

  • 0.1.0 - initial version

FAQs

Package last updated on 20 Aug 2018

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