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

@broxus/react-components

v0.26.1

Published

Broxus Design system components library

Readme

Broxus / React Components

A React component library that extends @broxus/react-uikit with higher-level, composite components for building web application interfaces.

Table of Contents

Installation

Install the package as project dependency

npm install @broxus/react-components
yarn add @broxus/react-components
pnpm add @broxus/react-components
bun add @broxus/react-components

Components

Token & Pool

Components for displaying and selecting tokens and liquidity pools.

| Component | Description | |---|---| | TokenIcon | Token logo image with fallback | | TokenBadge | Token name/symbol badge with icon | | TokenAmountBadge | Token amount display with icon and formatting | | TokenSelect | Token selection dropdown | | TokenSelector | Full token selector with search | | TokensList | Scrollable list of tokens | | TokenAmountInput | Input for token amounts with token selection | | PoolSelect | Liquidity pool selector | | PoolTokensBadge | Overlapping token icons for a pool |

Data Entry

Specialized input and control components.

| Component | Description | |---|---| | AmountInput | Numeric amount input with max button and formatting | | ComposedControl | Input with attached label or action (e.g. input + button) | | OrderingSwitcher | Column sort direction toggle | | TimeframeSwitcher | Timeframe period selector (1D, 1W, 1M, etc.) |

Data Display

Components for presenting formatted data and metrics.

| Component | Description | |---|---| | FormattedTokenAmount | Formatted token amount with decimals and abbreviation | | FormattedCurrencyValue | Formatted fiat currency value | | QuotationRate | Exchange rate display | | QuotationsDelta | Price change indicator with color (positive/negative) | | Stats | Key-value statistics block | | Descriptions | Labeled description list | | Skeleton | Content placeholder during loading | | ContentLoader | SVG-based animated content placeholder | | Copy | Copy-to-clipboard button with tooltip | | Datetime | Formatted date/time display | | RelativeTime | Relative time label (e.g. "5 min ago") | | EcosystemLink | External link with ecosystem icon |

Charts

Data visualization components.

| Component | Description | |---|---| | Chart | Line/area chart | | PieChart | Pie/donut chart with tooltip |

Utility

Low-level and helper components.

| Component | Description | |---|---| | NativeScrollArea | Custom-styled native scrollbar container | | WalletAccount | Wallet address display with icon and truncation | | AccountIcon | Generated avatar icon for an address | | IconsSet | SVG icon sprite definitions | | Icon | Icon reference from the sprite | | Close | Close button | | Leader | Dot leader line between two elements | | AddAsset | Button to add a token to wallet | | EmptyListPicture | Empty state illustration | | Noop | No-op render component |

Customization

The SCSS system follows the same architecture as @broxus/react-uikit — see Customization for a detailed overview of the two-layer approach (SCSS variables + CSS custom properties), configurable imports, and hook mixins.

SCSS Entry Points

| Entry point | Purpose | |---|---| | @broxus/react-components/styles/import | Main entry — outputs component styles with conditional token generation | | @broxus/react-components/styles/tokens | Re-exports token mixins for selective inclusion |

Individual component styles are also available:

@use '@broxus/react-components/styles/skeleton';
@use '@broxus/react-components/styles/chart';

Selective Import

@use '@broxus/react-components/styles/import' with (
    $components: (skeleton: true, chart: true, token-icon: true),
);

Or include everything:

@use '@broxus/react-components/styles/import' with (
    $components: (all: true),
);

Component map:

| Enabled by default | Disabled by default | |---|---| | amount-input, composed-control, copy, explorer-links, ordering-switcher, icons-set, pool-tokens-badge, quotation-delta, quotation-rate, skeleton, stats, token-amount-badge, token-amount-input, token-badge, token-icon, token-selector, tokens-list, wallet-account | chart, content-loader, descriptions, formatted-currency-value, formatted-token-amount, native-scroll-area, pie-chart, pool-select, token-select |

Overriding CSS Custom Properties

Token mixins accept @content blocks:

@use '@broxus/react-components/styles/tokens';

:root {
    @include tokens.skeleton-tokens {
        --skeleton-background: rgba(255, 255, 255, 8%);
    }
    @include tokens.stats-tokens;
    @include tokens.token-icon-tokens;
}

Hook Mixins

Register hook mixins via the $mixins map:

@use 'sass:meta';
@use 'mixins';

@use '@broxus/react-components/styles/import' as * with (
    $components: (all: true),
    $mixins: (
        'hook-composed-control': meta.get-mixin('hook-composed-control', 'mixins'),
        'hook-stats': meta.get-mixin('hook-stats', 'mixins'),
    ),
);