New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@broxus/react-components

Package Overview
Dependencies
Maintainers
8
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@broxus/react-components

Broxus Design system components library

npmnpm
Version
0.26.0
Version published
Weekly downloads
179
-35.84%
Maintainers
8
Weekly downloads
 
Created
Source

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
  • Components
  • Customization

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.

ComponentDescription
TokenIconToken logo image with fallback
TokenBadgeToken name/symbol badge with icon
TokenAmountBadgeToken amount display with icon and formatting
TokenSelectToken selection dropdown
TokenSelectorFull token selector with search
TokensListScrollable list of tokens
TokenAmountInputInput for token amounts with token selection
PoolSelectLiquidity pool selector
PoolTokensBadgeOverlapping token icons for a pool

Data Entry

Specialized input and control components.

ComponentDescription
AmountInputNumeric amount input with max button and formatting
ComposedControlInput with attached label or action (e.g. input + button)
OrderingSwitcherColumn sort direction toggle
TimeframeSwitcherTimeframe period selector (1D, 1W, 1M, etc.)

Data Display

Components for presenting formatted data and metrics.

ComponentDescription
FormattedTokenAmountFormatted token amount with decimals and abbreviation
FormattedCurrencyValueFormatted fiat currency value
QuotationRateExchange rate display
QuotationsDeltaPrice change indicator with color (positive/negative)
StatsKey-value statistics block
DescriptionsLabeled description list
SkeletonContent placeholder during loading
ContentLoaderSVG-based animated content placeholder
CopyCopy-to-clipboard button with tooltip
DatetimeFormatted date/time display
RelativeTimeRelative time label (e.g. "5 min ago")
EcosystemLinkExternal link with ecosystem icon

Charts

Data visualization components.

ComponentDescription
ChartLine/area chart
PieChartPie/donut chart with tooltip

Utility

Low-level and helper components.

ComponentDescription
NativeScrollAreaCustom-styled native scrollbar container
WalletAccountWallet address display with icon and truncation
AccountIconGenerated avatar icon for an address
IconsSetSVG icon sprite definitions
IconIcon reference from the sprite
CloseClose button
LeaderDot leader line between two elements
AddAssetButton to add a token to wallet
EmptyListPictureEmpty state illustration
NoopNo-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 pointPurpose
@broxus/react-components/styles/importMain entry — outputs component styles with conditional token generation
@broxus/react-components/styles/tokensRe-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 defaultDisabled 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-accountchart, 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'),
    ),
);

Keywords

designsystem

FAQs

Package last updated on 13 Feb 2026

Related posts