New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@thru/react-ui

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thru/react-ui

Headless-friendly React UI components built on top of `@thru/react-sdk`. These components provide polished wallet experiences that wire up to the shared Thru provider with zero additional state management.

latest
npmnpm
Version
0.2.14
Version published
Weekly downloads
613
6711.11%
Maintainers
1
Weekly downloads
 
Created
Source

@thru/react-ui

Headless-friendly React UI components built on top of @thru/react-sdk. These components provide polished wallet experiences that wire up to the shared Thru provider with zero additional state management.

Installation

npm install @thru/react-ui

Requires @thru/react-sdk and React 18+ as peer dependencies.

Basic Usage

import { ThruProvider } from '@thru/react-sdk';
import { ThruAccountSwitcher } from '@thru/react-ui';

function WalletBar() {
  return (
    <header style={{ display: 'flex', justifyContent: 'flex-end', padding: '1rem' }}>
      <ThruAccountSwitcher />
    </header>
  );
}

export function App() {
  return (
    <ThruProvider
      config={{
        iframeUrl: 'https://wallet.thru.org/embedded',
        rpcUrl: 'https://grpc-web.alphanet.thruput.org',
      }}
    >
      <WalletBar />
      {/* rest of your app */}
    </ThruProvider>
  );
}

ThruAccountSwitcher automatically handles:

  • Launching the wallet connect modal when the user clicks the button
  • Showing connection progress and the active account address
  • Listing connected accounts and updating the selection with useAccounts() and useWallet() under the hood

FAQs

Package last updated on 01 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts