@us3r-network/profile
v0.7.2-alpha.1
Published
the us3r profile components
Downloads
7
Keywords
Readme
@us3r-network/profile
We created a data model about user profile based on ceramic, and provided crud SDK for the model, and commonly used react components related to profile
Install
npm install @us3r-network/auth-with-rainbowkit @us3r-network/profile
Where @us3r-network/auth-with-rainbowkit is the peerDependencies of @us3r-network/profile
Usage
You need to wrap your application with Us3rAuthWithRainbowkitProvider
and ProfileStateProvider
first.
import { PropsWithChildren } from "react";
import { Us3rAuthWithRainbowkitProvider } from "@us3r-network/auth-with-rainbowkit";
import { ProfileStateProvider } from "@us3r-network/profile";
export default function App({ children }: PropsWithChildren) {
return (
<Us3rAuthWithRainbowkitProvider>
<ProfileStateProvider ceramicHost={process.env.REACT_APP_CERAMIC_HOST}>
{children}
</ProfileStateProvider>
</Us3rAuthWithRainbowkitProvider>
);
}
Then you can start using our components. For more information, please refer to our component documentation storybook.