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

@dropi/ui-components

v1.0.17

Published

Dropi UI Components - Framework-agnostic Web Components library built with Angular Elements

Readme

@dropi/ui-components

Framework-agnostic Web Components library built with Angular Elements

npm version

📦 Installation

npm install @dropi/ui-components

Automatic Setup (Interactive)

The installation script will try to ask if you are setting up a Standalone application (React, Vue, Vanilla) or a Micro Frontend.

  • Standalone: Installs necessary Angular runtime dependencies (@angular/core, zone.js, etc.) automatically.
  • Micro Frontend: Skips dependencies, assuming the Host application provides them.

Manual Setup

If the installation runs in a non-interactive environment (CI/CD), you can configure it manually later:

npx dropi-setup

Or force the mode via environment variables:

DROPI_INSTALL_MODE=standalone npm install @dropi/ui-components

🚀 Quick Start

1. Import Styles

Crucial: You must import the CSS tokens for the components to look right.

Angular (angular.json):

"styles": [
  "node_modules/@dropi/ui-components/dist/dropi-tokens.css",
  "src/styles.scss"
]

React / Vue / Vanilla JS:

import "@dropi/ui-components/dropi-tokens.css";

2. Usage (React / Vue / Vanilla JS)

In your main entry file (main.tsx, main.js), initialize the library:

import "zone.js"; // Mandatory: must be imported first
import { defineCustomElements } from "@dropi/ui-components";

// Initialize Angular environment and register Web Components
defineCustomElements();

Then use the Web Component tags directly in your JSX/HTML:

// React Example (No imports needed for the component itself)
const App = () => (
  <div>
    <dropi-wc-button
      type="primary"
      text="Login"
      onClick={() => console.log("clicked")}
    ></dropi-wc-button>
  </div>
);

📚 Available Web Components

All components use the prefix dropi-wc-.

🛠️ Form Elements

| Selector | Description | | ------------------------- | ----------------------------------------- | | <dropi-wc-button> | Primary/Secondary/Ghost buttons | | <dropi-wc-input> | Text inputs with validation | | <dropi-wc-checkbox> | Standard checkbox | | <dropi-wc-radio-button> | Grouped radio buttons | | <dropi-wc-switch> | Toggle switches | | <dropi-wc-toggle> | Advanced toggle switch with configuration | | <dropi-wc-text-area> | Multi-line text area | | <dropi-wc-phone-input> | Specialized international phone input |

🧭 Navigation

| Selector | Description | | ------------------------------- | ------------------------------------ | | <dropi-wc-sidebar> | Collapsible navigation sidebar | | <dropi-wc-navbar> | Top navigation bar | | <dropi-wc-breadcrumb> | Navigation breadcrumbs | | <dropi-wc-paginator> | Data pagination with cursor support | | <dropi-wc-steps> | Progress steps (horizontal/vertical) | | <dropi-wc-languages-selector> | Language switching dropdown |

📦 Layout & Containers

| Selector | Description | | ---------------------- | --------------------------------------- | | <dropi-wc-modal> | Dialog modals with customizable content | | <dropi-wc-drawer> | Side drawers (Left/Right) | | <dropi-wc-accordion> | Expandable content sections | | <dropi-wc-tabs> | Tabbed content views |

🎨 Display & Feedback

| Selector | Description | | ----------------------------- | ------------------------------------ | | <dropi-wc-alert> | Success/Error/Info status alerts | | <dropi-wc-alert-validation> | Verification status alerts (PrimeNG) | | <dropi-wc-badge> | Status and number badges | | <dropi-wc-tag> | Categorization tags | | <dropi-wc-spinner> | Loading indicator | | <dropi-wc-skeleton> | Loading skeletons for layouts | | <dropi-wc-empty> | Empty state displays | | <dropi-wc-tooltip> | Contextual help tooltips |

📽️ Multimedia & Advanced

| Selector | Description | | ---------------------------- | --------------------------------- | | <dropi-wc-carousel> | Image and content carousels | | <dropi-wc-youtube-video> | Lazy-loaded YouTube player | | <dropi-wc-dropdown> | Checkbox-based selection dropdown | | <dropi-wc-banner-external> | Dynamic WordPress banners |


🛠️ Development

# Install dependencies
npm install

# Build library
npm run build:complete

# Watch mode
npm run watch