Current collected state Current
Observed since 20 Oct, 23:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xfutbol/id
0xFutbol ID
A React component library with shared providers for 0xFutbol ID.
npm install @0xfutbol/id
# or
yarn add @0xfutbol/id
# or
pnpm add @0xfutbol/id
import { OxFutbolIdProvider } from '@0xfutbol/id';
import '@0xfutbol/id/css'; // Import CSS if needed
function App() {
return (
<OxFutbolIdProvider>
<YourApp />
</OxFutbolIdProvider>
);
}
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>
);
}
The main provider component that wraps your application.
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | (required) | The content to be wrapped by the provider |
queryClient | QueryClient | new QueryClient() | Custom QueryClient instance |
loadingComponent | React.ReactNode | Custom loading component | |
matchAppId | string | "pnh3wxqoqilsa1zy" | MatchProvider appId |
matchWalletType | "Base" | "UserPasscode" | "Base" | MatchProvider wallet type |
thirdwebConfig | ThirdwebProviderProps | {} | ThirdwebProvider configuration |
This library has the following peer dependencies:
ISC
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
ethersEnvironment{
"local_name": "ethers",
"alias": false,
"peer_metadata": null
} | ^6.13.2 | runtime |
jsonwebtokenEnvironment{
"local_name": "jsonwebtoken",
"alias": false,
"peer_metadata": null
} | ^9.0.2 | runtime |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5.6.2 | development |
@types/jsonwebtokenEnvironment{
"local_name": "@types/jsonwebtoken",
"alias": false,
"peer_metadata": null
} | ^9.0.6 | development |
Source distribution
{
"shasum": "0d8b12d94c34c560f064b7324f088ac34f546e34",
"tarball": "https://registry.npmjs.org/@0xfutbol/id/-/id-1.0.10.tgz",
"fileCount": 6,
"integrity": "sha512-edXWrqStjxJ4ri5ZeTLivr5agzhDGZ3NMCkIxeDb9srNB56MVM1niCj8UMGyDVydfnYguT9NEb/Hs0WxEDfmWA==",
"signatures": [
{
"sig": "MEUCIQDbqtxS0b3jDDxJZMZZ8P/55H5efGBSCkIh9VBkasiSxgIgLAHwr5MFZmRVi3slmvY/HWkJi1IXlV5kMriKOJV0sJc=",
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
}
],
"unpackedSize": 15168
}Observed since 20 Oct, 23:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:fbb7eec02bca7aa7c8557a6cf015bf502437cfb2cbe3da8a10cf44153f99307e