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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-blend-buttons

v1.0.9

Published

React buttons that adjust to parent's style.

Readme

Blend Buttons

Intro

Simple button component that will match its aesthetic to its parents'.

(React functional component button element that adjusts its styles to its direct parents' styles.)

The button's font-color matches that of its direct parent's background color. The button's background-color is assigned by user via "colorMain" prop. While hovering, the background will match that of its direct parent, and the font-color and border will transition to "colorMain" prop color.

Demo

Demo on Netlify Blend Buttons Demo

Installation

npm

npm i react-blend-buttons

Usage

import BlendButton from "react-blend-buttons";

//All custom props being utilized

<BlendButton
btnText={"Blend Button"}
colorMain={"goldenrod"}
borderRadius={"10px"}
padding={"3vw"}
fontSize={"18px"}
/>

 Use the BlendButton component wherever you would use a button element.

//No props

<Blendbutton />

Configuration

You can configure your BlendButton via props...

  • btnText: Text to be displayed in button.

    • Type: String.
    • Default value is "Submit".
  • colorMain: Color assigned to button background-color, btnText color, and border while being hovered.

    • Type: String.
    • Default Value is "black"
  • borderRadius: Sets button border-radius.

    • Type: String.
    • Default value is "0px".
  • padding: Sets buttons padding.

    • Type: String.
    • Default value is ".8vw 2vw".
  • fontSize: Sets buttons font-size.

    • Type: String.
    • Default value is button element default size.
  • onClick

    • Type: function
    • To user executes just as react's onClick handler executes.

    Blend Buttons accept all the same attributes that html buttons accept but as props.

  • name

  • style

  • value

  • type

  • autofocus

  • disabled

  • formenctype

  • formmethod

  • formaction

  • formnovalidate

  • formtarget

    <BlendButton name={"email"} value={password} />

Custom Styling

All Blend Buttons are rendered with a class of "blend-btn".

Styling Blend Buttons in a style sheet will not work as the inline style built in the component will overwrite it. Instead, pass your own style object as a prop. This will merge your style object with the style object already in place.

<BlendButton style={{fontFamily: "helvitica",  display: "block"}} />

Each Blend button is rendered with a unique id of "blend-btn-[4 digit unique id]"

Blend Buttons