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

@xsolla/xui-icons-currency

v0.151.0

Published

Xsolla virtual-currency icons (`PlayTime`, `XsollaGold`, `XsollaPoint`, `XsollaTicket`) with `colored` and `mono` variants.

Downloads

6,569

Readme

IconsCurrency

Xsolla virtual-currency icons (PlayTime, XsollaGold, XsollaPoint, XsollaTicket) with colored and mono variants.

Installation

npm install @xsolla/xui-icons-currency

Imports

import { PlayTime, XsollaGold, XsollaPoint, XsollaTicket, BaseIcon, type CurrencyIconProps, type IconVariant } from '@xsolla/xui-icons-currency';

Quick start

import * as React from 'react';
import { XsollaGold } from '@xsolla/xui-icons-currency';

export default function QuickStart() {
  return <XsollaGold size={24} aria-label="Xsolla Gold" />;
}

API Reference

Currency icon components (<XsollaGold>, <PlayTime>, ...)

All currency icons accept the same props (CurrencyIconProps).

| Prop | Type | Default | Description | | --- | --- | --- | --- | | variant | "colored" \| "mono" | "colored" | Renders the colour or monochrome glyph. | | size | number | 24 | Pixel size (square). | | color | string | "currentColor" | Icon colour. Applies only to the mono variant. | | className | string | — | CSS class on the wrapper. | | style | CSSProperties | — | Inline styles. | | data-testid | string | — | Test ID (web). | | testID | string | — | Test ID (React Native). | | aria-label | string | — | Accessible label. When set, the icon is exposed as role="img". | | aria-hidden | boolean | true if no aria-label | Hide from assistive tech. |

This package does not consume ThemeOverrideProps.

<BaseIcon>

Internal wrapper exported for advanced use cases (custom currency icons built from raw SVG strings). Most consumers should use the named icon components.

Available icons

| Component | Description | | --- | --- | | PlayTime | Play-time game currency. | | XsollaGold | Gold-coin currency. | | XsollaPoint | Points/credits currency. | | XsollaTicket | Ticket/voucher currency. |

Examples

Variants

import * as React from 'react';
import { XsollaGold } from '@xsolla/xui-icons-currency';

export default function Variants() {
  return (
    <div style={{ display: 'flex', gap: 16, alignItems: 'center' }}>
      <XsollaGold size={32} aria-label="Gold, colour" />
      <XsollaGold size={32} variant="mono" aria-label="Gold, monochrome" />
      <XsollaGold size={32} variant="mono" color="#FFD700" aria-label="Gold, custom colour" />
    </div>
  );
}

Balance display

import * as React from 'react';
import { XsollaGold, XsollaPoint, XsollaTicket } from '@xsolla/xui-icons-currency';

export default function BalanceDisplay() {
  const balances = [
    { Icon: XsollaGold, amount: 1250, label: 'Gold' },
    { Icon: XsollaPoint, amount: 500, label: 'Points' },
    { Icon: XsollaTicket, amount: 3, label: 'Tickets' },
  ];
  return (
    <div style={{ display: 'flex', gap: 24 }}>
      {balances.map(({ Icon, amount, label }) => (
        <div key={label} style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
          <Icon size={24} aria-hidden />
          <span>
            <span style={{ position: 'absolute', width: 1, height: 1, overflow: 'hidden', clipPath: 'inset(50%)', whiteSpace: 'nowrap' }}>{label}: </span>
            {amount.toLocaleString()}
          </span>
        </div>
      ))}
    </div>
  );
}

Price tag

import * as React from 'react';
import { XsollaGold } from '@xsolla/xui-icons-currency';

export default function PriceTag() {
  return (
    <div
      style={{
        display: 'inline-flex',
        alignItems: 'center',
        gap: 4,
        padding: '4px 12px',
        background: '#FFF8E1',
        borderRadius: 16,
      }}
    >
      <XsollaGold size={20} aria-hidden />
      <span style={{ fontWeight: 600 }}>500 Gold</span>
    </div>
  );
}

Accessibility

  • Icons are hidden from screen readers by default.
  • When standing alone, set aria-label on the icon.
  • When paired with a number (e.g. price), make sure the currency name is conveyed in surrounding text or a visually hidden label.