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

@tron-wallet-kit/ui

v0.1.0

Published

Token-driven UI foundations for TRON Wallet Kit.

Readme

@tron-wallet-kit/ui

Token-driven UI foundations for TRON Wallet Kit. This package renders the wallet modal, account panel, GasFree account mode, wallet button, QR states, toast UI, and theme tokens without depending on a host app CSS selector.

Install

pnpm add @tron-wallet-kit/ui@latest

Use This Package When

  • You are integrating TRON Wallet Kit into a non-React runtime.
  • You need the low-level HTML renderers.
  • You are building a custom client package around the shared UI.

Most React dapps should use @tron-wallet-kit/react.

Runtime Catalog Input

The UI package is catalog-agnostic. Wallet icons, names, platform metadata, and WalletConnect support come from the client runtime catalog, not from hardcoded UI lists. This keeps third-party wallets and custom descriptors out of the UI package.

import { createWalletModal } from "@tron-wallet-kit/ui";

const modal = createWalletModal({
  manager,
  ui: {
    catalog: [
      {
        id: "custom-wallet",
        name: "Custom Wallet",
        icon: "https://example.com/wallet.svg",
        platforms: ["extension"]
      }
    ]
  }
});

Main Exports

  • createWalletModal
  • createWalletButton
  • createWalletToast
  • createConnectModalHtml
  • createAccountPanelHtml
  • createWalletButtonHtml
  • resolveWalletUiConfig
  • resolveTheme
  • createThemeStyleText
  • createThemeStyleProperties

Theming

The UI is driven by --twk-* CSS variables. Theme presets include light, dark, tron, tron-energy, nile, shasta, bandwidth, energy, sun, graphite, midnight, ocean, glass, rounded, crisp, soft, neon, terminal, minimal, and highContrast.

Account Panel

createAccountPanelHtml supports the current connected wallet, .trx identity, TRX balance, address QR, recent transactions, and the optional GasFree mode. When GasFree is configured, the General panel renders a compact GasFree action in the header; selecting it switches the same account panel to the GasFree address/balance view.

App metadata is not configured in this package. Pass metadata to @tron-wallet-kit/client or @tron-wallet-kit/react; the UI receives the wallet/session data it needs from the manager and runtime catalog.

Status

This package is part of the TRON Wallet Kit 0.1.0 release line and is intended for the npm latest tag.

License

MIT