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

@dubai-design-system/components-js

v3.12.16

Published

JavaScript package for the Digital Dubai Design System, offering reusable, customizable components for seamless integration into web applications

Readme

Framework-agnostic web components built with StencilJS as part of the Dubai Design System (DDA). Use them in any HTML, JavaScript, or TypeScript project — no dependency on React, Angular, or Vue.

Framework wrappers are also available: @dubai-design-system/components-react, @dubai-design-system/components-vue, and @dubai-design-system/components-angular.

Key features

  • Lightweight & fast — native Web Components with lazy loading.
  • Customizable — aligned with Dubai Design System branding, with light and dark themes.
  • Framework-agnostic — works in plain HTML or with any framework.
  • Accessible & responsive — follows accessibility best practices.

Setup

1. Add the icon fonts

DDA components use Material Icons and Material Symbols. Add both inside your <head> tag:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" rel="stylesheet">

2. Load the components

Option A — CDN (no build step). Add this script to your HTML, replacing X.X.X with the latest published version. Always pin an exact version in the CDN URL — unversioned jsdelivr URLs resolve each file independently, so the loader and its chunks can come from different package versions, which breaks rendering:

<script type="module">
  import { defineCustomElements } from "https://cdn.jsdelivr.net/npm/@dubai-design-system/[email protected]/loader/index.es2017.js";

  defineCustomElements();
</script>

Option B — npm with a bundler (Vite, Rollup). Install the package:

npm i @dubai-design-system/components-js

Then import the self-registering build for each component you use:

// each import automatically defines its custom element
import '@dubai-design-system/components-js/dist/components/dda-button.js';
import '@dubai-design-system/components-js/dist/components/dda-header.js';

⚠️ With Vite or plain Rollup, do not use the lazy loader (@dubai-design-system/components-js/loader). Its computed dynamic imports cannot be statically analyzed by these bundlers, so component chunks are missing from the build (404 on dda-*.entry.js) and components never render. The CDN approach and Angular's builder are unaffected.

3. Use the components

<dda-button
  button_color="default-primary"
  start_icon="sentiment_satisfied"
  end_icon="arrow_forward"
  button_id="button"
  aria_label="button"
  onclick="console.log('clicked')"
>Button</dda-button>

Available components

dda-button, dda-dropdown, dda-modal, dda-card, dda-header, and more.

License

Copyright (c) 2018-2026 Digital Dubai. All rights reserved. An open-source license is under review and will be announced in a future release.