Catalog npm
PACKAGE EXPLORERView in registry

@0xfutbol/id

npm

React component library with shared providers for 0xFutbol ID

identityprovidersreactweb3
Versions collected173
Direct dependencies23From release 2.0.200
Last observed21 Oct, 08:54 UTC

README

Current package documentation

@0xfutbol/id

A React component library with shared providers for 0xFutbol ID.

Installation

npm install @0xfutbol/id
# or
yarn add @0xfutbol/id
# or
pnpm add @0xfutbol/id

Usage

Basic Usage

import { OxFutbolIdProvider } from '@0xfutbol/id';
import '@0xfutbol/id/css'; // Import CSS if needed

function App() {
  return (
    <OxFutbolIdProvider>
      <YourApp />
    </OxFutbolIdProvider>
  );
}

Advanced Usage

import { OxFutbolIdProvider } from '@0xfutbol/id';
import { QueryClient } from '@tanstack/react-query';
import '@0xfutbol/id/css';

// Create a custom QueryClient
const queryClient = new QueryClient({
  defaultOptions: {
    queries: {
      staleTime: 5 * 60 * 1000, // 5 minutes
    },
  },
});

// Custom loading component
const LoadingSpinner = () => <div>Loading...</div>;

function App() {
  return (
    <OxFutbolIdProvider
      queryClient={queryClient}
      loadingComponent={<LoadingSpinner />}
      matchAppId="your-custom-app-id"
      matchWalletType="UserPasscode"
      thirdwebConfig={{
        // ThirdwebProvider configuration
        clientId: "your-client-id",
      }}
    >
      <YourApp />
    </OxFutbolIdProvider>
  );
}

API Reference

OxFutbolIdProvider

The main provider component that wraps your application.

Props

PropTypeDefaultDescription
childrenReact.ReactNode(required)The content to be wrapped by the provider
queryClientQueryClientnew QueryClient()Custom QueryClient instance
loadingComponentReact.ReactNodeCustom loading component
matchAppIdstring"pnh3wxqoqilsa1zy"MatchProvider appId
matchWalletType"Base" | "UserPasscode""Base"MatchProvider wallet type
thirdwebConfigThirdwebProviderProps{}ThirdwebProvider configuration

Peer Dependencies

This library has the following peer dependencies:

  • React (^16.8.0 || ^17.0.0 || ^18.0.0)
  • React DOM (^16.8.0 || ^17.0.0 || ^18.0.0)
  • @tanstack/react-query (^4.0.0 || ^5.0.0)
  • @rainbow-me/rainbowkit (^2.0.0) (optional)

License

ISC

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 173

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.200Registry latest23 Dec 202523
2.0.19916 Dec 202523
2.0.19415 Dec 202523
2.0.19315 Dec 202523
2.0.19215 Dec 202523
2.0.19115 Dec 202523
2.0.19015 Dec 202523
2.0.18915 Dec 202523
2.0.18810 Dec 202523
2.0.18610 Dec 202523
2.0.1856 Oct 202523
2.0.18416 Sept 202523
2.0.18330 Jul 202523
2.0.18229 Jul 202523
2.0.18130 Jun 202523
2.0.18027 Jun 202523
2.0.17927 Jun 202523
2.0.17826 Jun 202523
2.0.17625 Jun 202523
2.0.17524 Jun 202523

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:4ef03d116cf47d99d5c1c658af75635c4001a23a80b68879a155f9578bc155e9