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": "2f5050b79e7deca3103e53fee6f00195028af0ba",
"tarball": "https://registry.npmjs.org/@0xfutbol/id/-/id-1.0.7.tgz",
"fileCount": 6,
"integrity": "sha512-+pvLb7hV+lrsHHwIa71bP6vEQogT0oiVuWz013+8QejyHJ/S0xK052kqNv73za87l74IVZ5Q8915VCyDA+lFWg==",
"signatures": [
{
"sig": "MEUCIQCtBLcyw2XguA+omlETaT+JAOjcP3lPeB7fthaAqD2xagIgYvPPC4hqA89JtDWBBh1+lOJiMy1fZ7BVoweto/5ZRZ0=",
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
}
],
"unpackedSize": 17047
}Observed since 20 Oct, 23:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:79e65b569bc34e721554a22d5f795cbb02d70a00cbe94dc71cae8ed8a6da55c6