@alephium/web3-react
Version:
React components for Alephium Web3.
60 lines (42 loc) • 1.5 kB
Markdown
<!-- logo -->
 
---
<h2> Table of contents</h2>
- [Install from sources](
- [Development](
- [Example](
- [Credits](
First clone this repository on your machine then run:
```bash
npm install
npm run build
```
To setup the repo on your machine just run:
```bash
npm install
npm run dev
```
To add a auth button to your react/nextjs app, simply wrap your app
with `AlephiumWalletProvider` component and add the
`AlephiumWalletProvider` component.
```typescript
const App = () => {
return (
<AlephiumWalletProvider useTheme="win95">
/* Your App */
<AlephiumConnectButton />
</AlephiumWalletProvider>
);
```
`useTheme` is optional, there are [a
dozon](https://github.com/alephium/alephium-web3-react/blob/99bdf241dd48992872fb5b8346460af88e0060e6/src/types.ts#L1)
themes that can be chosen from.
We have built this project on top of
[](https://github.com/family/connectkit)'s codebase. We
would like to take this oppurtunity to thank all the
[](https://github.com/family/connectkit/graphs/contributors)
of the ConnectKit project ❤️