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-base

v0.184.0

Published

A comprehensive collection of functional UI icons (500+) organised by category. Each icon renders through a shared `BaseIcon` wrapper and supports `solid` and `line` variants via the `variant` prop.

Downloads

39,190

Readme

IconsBase

A comprehensive collection of functional UI icons (500+) organised by category. Each icon renders through a shared BaseIcon wrapper and supports solid and line variants via the variant prop.

Installation

npm install @xsolla/xui-icons-base

Imports

import { Home, Star, Heart, Bell, Search, BaseIcon, type BaseIconProps, type IconVariant } from '@xsolla/xui-icons-base';

Quick start

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

export default function QuickStart() {
  return <Home size={24} aria-hidden />;
}

Each icon is a single component (e.g. Home, Star, Heart). Switch its appearance via variant:

<Home variant="line" />   {/* default */}
<Home variant="solid" />

API Reference

Icon components (<Home>, <Star>, <Heart>, ...)

All exported icon components accept the same props (BaseIconProps).

| Prop | Type | Default | Description | | --- | --- | --- | --- | | variant | "solid" \| "line" | "line" | Renders the solid (filled) or line (outlined) glyph. | | size | number \| string | 24 | Pixel size, or any CSS length (e.g. "100%" to fill its container). | | color | string | "currentColor" | Icon colour. Inherits from CSS color by default. | | className | string | — | Additional class on the wrapper element. | | style | CSSProperties | — | Inline styles on the wrapper element. | | 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; icons inherit colour from the surrounding text via currentColor.

<BaseIcon>

Internal wrapper. Exported for advanced use cases (e.g. building custom icon components from raw SVG strings). Most consumers should use the named icon components instead.

Examples

Variant toggle

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

export default function Toggle() {
  const [liked, setLiked] = React.useState(false);
  return (
    <button
      type="button"
      onClick={() => setLiked((v) => !v)}
      aria-pressed={liked}
      aria-label={liked ? 'Unlike' : 'Like'}
      style={{ background: 'none', border: 'none', cursor: 'pointer' }}
    >
      <Heart variant={liked ? 'solid' : 'line'} color={liked ? '#e74c3c' : 'currentColor'} aria-hidden />
    </button>
  );
}

Sizing

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

export default function Sizes() {
  return (
    <div style={{ display: 'flex', gap: 16, alignItems: 'center' }}>
      <Star size={16} aria-hidden />
      <Star size={20} aria-hidden />
      <Star size={24} aria-hidden />
      <Star size={32} aria-hidden />
      <Star size="100%" aria-hidden />
    </div>
  );
}

Status indicators

import * as React from 'react';
import { Check, Warning, InfoCr, RemoveCr } from '@xsolla/xui-icons-base';

export default function Statuses() {
  return (
    <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
      <span style={{ display: 'flex', gap: 8, alignItems: 'center' }}>
        <Check variant="solid" color="#2ecc71" aria-hidden /> Saved
      </span>
      <span style={{ display: 'flex', gap: 8, alignItems: 'center' }}>
        <Warning variant="solid" color="#f39c12" aria-hidden /> Verify details
      </span>
      <span style={{ display: 'flex', gap: 8, alignItems: 'center' }}>
        <RemoveCr variant="solid" color="#e74c3c" aria-hidden /> Failed
      </span>
      <span style={{ display: 'flex', gap: 8, alignItems: 'center' }}>
        <InfoCr variant="line" color="#3498db" aria-hidden /> More info
      </span>
    </div>
  );
}

Icon-only button

import * as React from 'react';
import { IconButton } from '@xsolla/xui-button';
import { Settings } from '@xsolla/xui-icons-base';

export default function SettingsButton() {
  return (
    <IconButton aria-label="Open settings">
      <Settings />
    </IconButton>
  );
}

Available icons

The package exports 500+ icons grouped by category. Categories include:

alignments-layouts, bookmarks, chart-graphs, communication, controls, date-time, design, devices-electronics, files-folders, finance-payment, formatting, games, media-controls, navigation-travel, shopping-ecommerce, specialized, user-interface.

Common examples: Home, Search, User, Users, Settings, Bell, Heart, Star, Eye, EyeOff, Lock, LockOpen, Edit, TrashCan, Plus, Minus, Check, Warning, ChevronDown, ChevronUp, ChevronLeft, ChevronRight, ArrowLeft, ArrowRight, ArrowUp, ArrowDown, Copy, Mail, Phone, Calendar, Clock, Image, File, Folder, ShoppingCart, ShoppingBag, BankCard, Wallet.

For the full list, see the package barrel file at packages/foundation/icons-base/src/index.ts.

Accessibility

  • Icons render aria-hidden="true" by default — pair them with visible text.
  • When an icon stands alone, set aria-label so it is exposed as role="img".
  • For interactive icon-only controls, prefer IconButton from @xsolla/xui-button, which enforces an accessible label.