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 🙏

© 2025 – Pkg Stats / Ryan Hefner

cnk-floating-button

v1.0.1

Published

An animated button component for React.

Readme

CNK-Floating-Button

An animated button component built with React.

cnk-floating-button

Installation

npm install cnk-floating-button --save

Example

import  React  from  "react";
import { render } from  "react-dom";
import  CNKFloatingButton  from  "../../src";

const  buttonConfigurations  = {
	button1: {
		iconName:  "home",
		onClick: () => {
			console.log("Button1: Clicked");
		}
	},
	button2: {
		iconName:  "phone",
		onClick: () => {
			console.log("Button2: Clicked");
		}
	},
	button3: {
		iconName:  "envelope",
		onClick: () => {
			console.log("Button3: Clicked");
		}
	},
	button4: {
		iconName:  "star",
		onClick: () => {
			console.log("Button4: Clicked");
		}
	}
};

const  App  = () => (
		<CNKFloatingButton
			iconName="sidebar"
			button1={buttonConfigurations.button1}
			button2={buttonConfigurations.button2}
			button3={buttonConfigurations.button3}
			button4={buttonConfigurations.button4} />
);

render(<App />, document.getElementById("root"));

Component Props

| Prop | Value | |--|--| | text | [String]: Label of the main button | | iconName | [String]: Icon name of the main button. We use semantic ui library for icons. | | size | [Number]: Width and Height's value of main button. One value for all of them.| |fontSize|[Number]: Font Size of the Text or Icon.| |button1|[Object]: Child button configuration for top-left | |button2|[Object]: Child button configuration for top-right | |button3|[Object]: Child button configuration for bottom-left | |button4|[Object]: Child button configuration for bottom-right | Note: At least one button configuration must be valid

Child Button Configuration

| Prop | Value | |--|--| | text | [String]: Label of the button | | iconName | [String]: Icon name of the button. We use semantic ui library for icons. | |fontSize|[Number]: Font Size of the Text or Icon.| |onClick|[Function][Required]: OnClick event for the button. | |backgroundColor|[String]: Background Color of the Button. This must be valid css color. | |foregroundColor|[String]: Foreground Color of the Button for Text or Icon. This must be valid css color. | |hoverBackgroundColor|[String]: Hover effect background color of the button. This must be valid css color. |