npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

formidable-oss-badges

v1.7.0

Published

Badges for Formidable OSS

Downloads

395

Readme

Formidable OSS Badges

Maintenance Status

Badges for Formidable Open Source Projects

Contents

Using the package

  • yarn add formidable-oss-badges or npm install formidable-oss-badges
  • In your react app, import { FeaturedBadge, ProjectBadge } from "formidable-oss-badges";
  • To get hover styles using CSS modules import "formidable-oss-badges/dist/style.css";
  • Use the <ProjectBadge /> or <FeaturedBadge /> component as directed below

ProjectBadge

ProjectBadge props

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

| Prop | Type | Description | Example | | ------------ | ---------------- | -------------------------------------------------------------------------------------------- | ------------------- | | color | String (hex/RGB) | Base color of the badge | "#FF00FF" | | abbreviation | String | Short representation of the name. Large font. Typically one uppercase letter, one lowercase. | "Em" | | description | String | Title or brief description. Smaller text, displayed in all-caps. | "Enzyme Matchers" | | className | String | Class to apply directly to the SVG | "project-badge" | | isHoverable | Boolean | Add hover style effects | true | | simple | Boolean | Hides the description and enlarges the abbreviation - use for small badge display | false |

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

ProjectBadge children

Will accept any svg child (we recommend to use an <image/> with an embedded png, svg or lossless image format of your choice. See example 5).

Presence of a child will cause the component to ignore any abbreviation prop.

You will need to position the child yourself.

e.g:

<image x="14%" y="20%" />

FeaturedBadge

To use a Featured Formidable Badge, you only need to pass in a single prop, name, that matches one of the available badges listed below.

Available Badges

See featuredLogos for the latest available lineup.

  • renature
  • spectacle
  • urql
  • victory
  • nuka
  • owl
  • groqd
  • envy
  • figlog
  • cloudsplice

For a simplified version of the logo without the name in the badge (works better for smaller sizes), you can use the simple variant of any of the above options.

<FeaturedBadge name="victory" simple />

FeaturedBadge props

| Prop | Type | Description | Default | | ----------- | ------- | --------------------------------------------------------------------------------- | ------- | | name | String | One of the available badge names | '' | | className | String | Additional class names | '' | | isHoverable | Boolean | Add hover style effects | true | | simple | Boolean | Hides the description and enlarges the abbreviation - use for small badge display | false |

Featured Project Badges

Named exports of featured project badges for importing a single badge.

Available Badges

See featuredProjectBadges for the latest available lineup.

  • RenatureBadge
  • SpectacleBadge
  • UrqlBadge
  • VictoryBadge
  • NukaBadge
  • OwlBadge
  • GroqdBadge
  • EnvyBadge
  • FigLogBadge
  • CloudSpliceBadge

FeaturedBadge props

| Prop | Type | Description | Default | | ----------- | ------- | --------------------------------------------------------------------------------- | ------- | | className | String | Additional class names | '' | | isHoverable | Boolean | Add hover style effects | true | | simple | Boolean | Hides the description and enlarges the abbreviation - use for small badge display | false |

Examples (with Images)

ProjectBadge Usage

Example 1:

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

Example 2:

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

Example 3:

<ProjectBadge />

Example 5:

ProjectBadge with svg child:

<ProjectBadge abbreviation="R" description="React" color="#90dafa">
  <image
    x="14%"
    y="20%"
    width="50%"
    href="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/512px-React-icon.svg.png"
  />
</ProjectBadge>

FeaturedBadge Usage

Example 6:

<FeaturedBadge name="victory">

Example Badges

| 1 | 2 | 3 | | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- | | Number | Enzyme Matchers | Blank |

| 4 | 5 | 6 | | ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | ProjectBadge with png | IconBadge with png | Featured badge |

Try the components locally

To try out the badge components locally:

  1. git clone this repo
  2. cd formidable-oss-badges
  3. yarn install
  4. yarn storybook

Maintenance Status

Active: Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.