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

formidable-oss-badges

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formidable-oss-badges

Badges for Formidable OSS

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
152
decreased by-33.91%
Maintainers
1
Weekly downloads
 
Created
Source

ProjectBadges

Badges for Formidable Open Source Projects

Contents

  • Using the package
  • Component props
  • Examples
  • Try component locally

Using the package

  • yarn add formidable-oss-badges or npm install formidable-oss-badges
  • In your react app, import { ProjectBadge } from "formidable-oss-badges";
  • Use the <ProjectBadge /> component as directed below

Component props

The <ProjectBadge /> component takes five, optional, props:

PropTypeDescriptionExample
colorString (hex/RGB)Base color of the badge"#FF00FF"
abbreviationStringShort representation of the name. Large font. Typically one uppercase letter, one lowercase."Em"
descriptionStringTitle or brief description. Smaller text, displayed in all-caps."Enzyme Matchers"
numberNumber or StringNumber that appears at the top of the badge9 or "09"
classNameStringClass to apply directly to the SVG"project-badge"

It is recommended to at least include the color, description and abbreviation props.

Examples

1:

  <ProjectBadge color="#89E" abbreviation="No" description="Number"/> 

2:

  <ProjectBadge color="#E48055" abbreviation="Em" description="Enzyme Matchers" number="09" />

3:

  <ProjectBadge />

Example project badges

Try the component locally

To try out the badge component locally:

  1. git clone this repo
  2. cd formidable-oss-badges
  3. yarn && yarn build && yarn link or npm i && npm run build && npm link
  4. cd examples
  5. yarn link "formidable-oss-badges" or npm link "formidable-oss-badges"
  6. yarn && yarn start or npm i && npm start to run a basic React app prepopulated with basic examples

You can then edit examples/src/App.js, either by returning the component directly, or by adding an object with the props you would like to trial in the dataForExamples array

Keywords

FAQs

Package last updated on 24 Apr 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