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

@pantoken/web-components

v0.1.1

Published

Framework-agnostic custom elements for Instructure UI: <instui-icon> plus token-styled primitives.

Downloads

384

Readme

@pantoken/web-components

Framework-agnostic custom elements for Instructure UI. One package gives Vue, Svelte, Angular, and plain HTML the icon plus a set of token-styled components (from @pantoken/components), with no per-framework port.

Install

npm i @pantoken/web-components

Also available as pantoken/webComponents.

Usage

import "@pantoken/web-components"; // auto-registers the elements in the browser
import "@pantoken/css"; // defines the --instui-* custom properties the elements read
<instui-button><instui-icon name="arrow-left"></instui-icon> Save</instui-button>
<instui-button variant="secondary">Cancel</instui-button>
<instui-alert variant="success">Saved.</instui-alert>
<instui-badge variant="danger">3</instui-badge>
<instui-avatar variant="blue">AB</instui-avatar>
<instui-progress value="60"></instui-progress>

The elements (each renders the matching @pantoken/components CSS into its shadow root; tokens are inherited custom properties, so they pierce the shadow boundary — load @pantoken/css):

  • <instui-icon name="arrow-left" size="1.5rem" color="…"> — glyphs from @pantoken/icons.
  • <instui-button variant="secondary|danger"> — with disabled / aria-disabled.
  • <instui-alert variant="info|success|warning|danger">.
  • <instui-badge variant="success|danger">, <instui-pill variant="info|success|warning|danger">, <instui-tag>.
  • <instui-avatar variant="blue|green|red|orange" size="sm|lg" shape="rectangle">.
  • <instui-spinner>, <instui-progress value="0–100" variant="success|danger">.
  • <instui-progress-circle value="0–100" label="…"> — a ring driven by value.
  • <instui-metric value="…" label="…">, <instui-rating value="3" max="5">.
  • <instui-icon-button label="…">, <instui-toggle-button pressed="true|false">.
  • <instui-truncate lines="2"> — omit lines for a single-line ellipsis.
  • <instui-img src="…" alt="…" constrain="cover|contain" display="block">.
  • <instui-side-nav-bar minimized="true|false">, <instui-tree-browser>, <instui-calendar> — containers; slot the items / tree / day cells.
  • <instui-tooltip tip="…" placement="bottom|start|end"> — the slotted trigger plus a hover/focus bubble.
  • <instui-modal open> — renders a real <dialog>; the open attribute drives showModal()/close(), and native dismissal (Esc/backdrop) reflects back and fires a close event.
  • <instui-context-view>, <instui-popover>, <instui-tray placement="start|end|top|bottom" size="…"> — native popovers; toggle from a button with popovertarget/command.
  • <instui-in-place-edit value="…" readonly> — click-to-edit field; commits on Enter/blur (fires a change event), reverts on Escape.

The module is Node-safe: element classes are defined inside register(), which no-ops when there is no DOM. Call register(customElements) manually if you need to control timing.

API

  • register(registry?, options?): void — define the custom elements into a registry (defaults to globalThis.customElements). No-op when there is no DOM, so it's safe to import during SSR or a build. options.prefix sets the tag prefix, mirroring the CSS layer: pass a non-empty string like x for <x-icon>. A prefix is always applied (a custom-element name must contain a hyphen), so an omitted, empty, or nullish prefix falls back to the default instui (<instui-icon>).
  • iconSvg(name, resolve?): string — resolve an icon name to inline SVG (empty string when unknown). Pure; the element renders the result.
  • ELEMENTS — the tuple of base (unprefixed) element names this package registers (e.g. icon, date-input).
  • DEFAULT_PREFIX — the default tag prefix, "instui".

Related

  • Styles the elements with @pantoken/components and reads glyphs from @pantoken/icons.
  • Pairs with @pantoken/css for the base --instui-* custom properties.
  • Wrapped by the per-framework helpers: @pantoken/angular, @pantoken/react, @pantoken/svelte, and @pantoken/vue.

License

MIT