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

@safestrong/ppa-component-library

v1.11.1

Published

Collection of reusable components for any PPA web applications

Readme

📦 PPA Component Library

Reusable component for faster web development, simple and easy to use. Enabling user to define it's color theme, make the UI displayed consistently.

You need additional package (mandatory) while using this component > Fontawesome and Tailwind CSS

💻 Installation

npm i @safestrong/ppa-component-library
#OR
yarn add @safestrong/ppa-component-library
#OR
pnpm add @safestrong/ppa-component-library

🕹 Usage

Import the stylesheet once, e.g. in your app's root layout or entry file import "@safestrong/ppa-component-library/styles.css" Import the component import { Button } from "@safestrong/ppa-component-library" Use component in your page or your own component <Button label="Click me" />

📂 List

Button - <Button />

| Prop | Type | Required | Default | Description | | ----------- | ---------- | -------- | ------- | ---------------------------------- | | label | string | ✅ Yes | — | The text inside the button. | | isLoading | boolean | ❌ No | false | Loading state waiting | | btnType | enum | ❌ No | primary | primary, secondary, tertiary | | icon | IconProp | ❌ No | — | Icon inside the button. | | className | string | ❌ No | — | Additional class for button. |

Card - <Card />

| Prop | Type | Required | Default | Description | | ----------- | ----------------- | -------- | ------- | ------------------------- | | children | React.ReactNode | ✅ Yes | — | Content inside. | | className | string | ❌ No | - | Additional class for card |

Text Input - <TextInput />

| Prop | Type | Required | Default | Description | | ---------- | ---------- | -------- | ------- | ---------------------------------- | | icon | IconProp | ❌ No | — | Icon inside text input | | label | string | ❌ No | - | Additional label if needed | | labelFor | string | ❌ No | - | Label (if any) htmlFor attribute |

Toast - <Toast />

| Prop | Type | Required | Default | Description | | ------------- | -------- | -------- | ------- | ----------------------------------- | | title | string | ✅ Yes | — | Toast Title | | description | string | ✅ Yes | - | Description on toast body | | type | enum | ❌ No | info | info,warning,success,danger | | className | string | ❌ No | - | Additional className for Toast body |

Expandable - <Expandable />

| Prop | Type | Required | Default | Description | | ----------- | ----------------- | -------- | ------- | ------------------------------- | | title | string | ✅ Yes | — | Title | | children | React.ReactNode | ✅ Yes | - | Content inside | | isOpen | boolean | ❌ No | false | Auto show/expand content | | className | string | ❌ No | - | Additional class for Expandable |

Tooltip - <Tooltip />

| Prop | Type | Required | Default | Description | | ---------- | ----------------- | -------- | ------- | -------------------------------- | | children | React.ReactNode | ✅ Yes | — | Text content | | text | string | ✅ Yes | - | Tooltip text | | position | string | ❌ No | top | top, bottom, right, left |

Single Select - <SingleSelect /> ✅ Client Component

| Prop | Type | Required | Default | Description | | ----------- | -------------------------------- | -------- | ------- | ---------------------------------- | | label | string | ❌ No | — | Additional label | | labelHtml | string | ❌ No | - | Label (if any) htmlFor attribute | | options | {label:string, value:string}[] | ❌ No | - | List Option | | stringOptions | string[] | ❌ No | - | List Option |

Multi Select - <MultiSelect /> ✅ Client Component

| Prop | Type | Required | Default | Description | | ------- | --------------------------------- | -------- | ------- | ------------ | | state | React.useState<{value, select}> | ✅ Yes | — | Text content | | options | {label:string, value:string}[] | ❌ No | - | List Option | stringOptions | string[] | ❌ No | - | List Option |

Example:

export default function Dashboard() {
  const [selectedItem, setSelectedItem] = useState([]);
  return (
      <MultiSelect
        list={list}
        state={{ value: selectedItem, select: setSelectedItem }}
      />
  );
}

Slider - <Slider />

| Prop | Type | Required | Default | Description | | --------------------- | --------------------- | -------- | ------- | ---------------------------------- | | InputHTMLAttributes | InputHTMLAttributes | ❌ No | — | optinal attribute of input Element |

Theme Toggle - <ThemeToggle />

| Prop | Type | Required | Default | Description | | --------------------- | --------------------- | -------- | ------- | ---------------------------------- | | InputHTMLAttributes | InputHTMLAttributes | ❌ No | — | optinal attribute of input Element |

Tab Navigation - <NavTabClient /> ✅ Client Component

| Prop | Type | Required | Default | Description | | ---------- | -------------------------------- | -------- | ------- | ------------ | | children | React.ReactNode | ✅ Yes | — | Text content | | state | string | ✅ Yes | - | Tooltip text | | items | {label:string, value:string}[] | ✅ Ye | - | List Option |