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

@finsire/frontend_components

v1.0.44

Published

## \*Important: Import css in your application

Readme

Finsire Frontend Components

*Important: Import css in your application

You need to import the css file in order for the component styles to work.

import "@finsire/frontend_components/dist/index.css";

1. Button

The Button component is a reusable React "button" component with customizable variants, sizes, states, and optional icons.

import the component as follows:

import { Button } from "@finsire/frontend_components";

| Props | Required | Data type | Default value | Description | | ----------- | -------- | --------- | ------------- | ----------------------------------------------------- | | text | Yes | String | | text to be shown in button (ex: "Click") | | variant | No | String | primary | accepted values: (primary, secondary, tertiary) | | textSize | No | String | md | accepted values: (sm, md, lg, xl) | | size | No | String | L | accepted values: (S, M, L) | | disabled | No | Boolean | false | pass true for disabled | | leftIcon | No | Component | | pass icon as a component | | rightIcon | No | Component | | pass icon as a component | | className | No | String | | pass tailwind class names | | props | No | Any | | pass a function like onClick, etc |


Usage example

<Button text="Primary Button" variant="primary" size="L" />

2. Checkbox

The Checkbox component is a reusable React "checkbox" component with customizable variants, disabled state, checked state, etc.

import the component as follows:

import { Checkbox } from "@finsire/frontend_components";

| Props | Required | Data type | Default value | Description | | ---------------------- | -------- | --------- | ------------- | ----------------------------------------------------------------------- | | id | Yes | String | | pass id of the checkbox | | variant | No | String | primary | accepted values: (primary, indeterminate) | | disabled | No | Boolean | false | pass true for disabled | | checked | No | Boolean | false | pass true for checked in case of disabled [for primary variant] | | defaultIndeterminate | No | Boolean | false | pass true for checked in case of disabled [for indeterminate variant] | | getCurrentStatus | No | Function | | pass a function which will get "status" [boolean value: (true, false)] | | className | No | String | | pass tailwind class names | | props | No | Any | | pass other props as required |


Usage example

const handleGetCheckedStatus = (status) => {
  console.log("status is:");
  console.log(status);
};

<Checkbox id="checkId" getCurrentStatus={handleGetCheckedStatus} />;

3. Avatar

The Avatar component is a reusable component with customizable variants, sizes, and states like checked, image, etc.

import the component as follows:

import { Avatar } from "@finsire/frontend_components";

| Props | Required | Data type | Default value | Description | | ------------- | -------- | --------- | ------------- | ----------------------------------------- | | variant | No | String | primary | accepted values: (primary, secondary) | | size | No | String | lg | accepted values: (lg, md, sm, xs) | | status | No | String | unchecked | accepted values: (checked, unchecked) | | letter | No | String | | pass any letter | | avatarImg | No | String | | pass image source | | bgFillColor | No | String | | pass hex code for background color | | pathColor | No | String | | pass hex code for foreground color |


Usage example

<Avatar variant="secondary" size="md" />

4. Toggle

The Toggle component is a reusable component with customizable sizes, showing icons and disabled states.

import the component as follows:

import { Toggle } from "@finsire/frontend_components";

| Props | Required | Data type | Default value | Description | | ------------------- | -------- | --------- | ------------- | ---------------------------------------------------------------------- | | size | No | String | lg | accepted values: (lg, md, sm) | | showIcon | No | Boolean | false | pass true to show icons | | toggleOnDisabled | No | Boolean | false | pass true for disabled ON state | | toggleOffDisabled | No | Boolean | false | pass true for disabled OFF state | | getStatus | No | Function | | pass a function which will get "status" [boolean value: (true, false)] |


Usage example

<Toggle size="md" showIcon={true} />