0.9.0 • Published 8 months ago
@suiware/kit v0.9.0
@suiware/kit
Opinionated React components and hooks for building Sui dApps.
Installation
pnpm add @suiware/kit @mysten/dapp-kit @mysten/sui @mysten/suins @mysten/wallet-standard @tanstack/react-queryUsage
1. Import styles once in a higher order component
import '@mysten/dapp-kit/dist/index.css'
import '@suiware/kit/main.css'Like so:
import '@mysten/dapp-kit/dist/index.css'
import '@suiware/kit/main.css'
function App() {
return (
<div className="main">
Hey there!
</div>
)
}2. Wrap your main component into SuiProvider
import '@mysten/dapp-kit/dist/index.css'
import '@suiware/kit/main.css'
import { SuiProvider } from '@suiware/kit'
function App() {
return (
<SuiProvider>
<div className="main">
Hey there!
</div>
</SuiProvider>
)
}3. Use @suiware/kit components and hooks
import '@mysten/dapp-kit/dist/index.css'
import '@suiware/kit/main.css'
import { SuiProvider, Balance } from '@suiware/kit'
function App() {
return (
<SuiProvider>
<div className="main">
Hey there! Your SUI balance is <Balance />
</div>
</SuiProvider>
)
}API reference
Providers
Components
Hooks
0.9.0
8 months ago
0.1.0
1 year ago
0.0.1
1 year ago
0.3.0
1 year ago
0.2.0
1 year ago
0.0.2
1 year ago
0.8.1
11 months ago
0.4.5
1 year ago
0.8.0
11 months ago
0.5.3
12 months ago
0.4.4
1 year ago
0.5.0
1 year ago
0.4.1
1 year ago
0.3.2
1 year ago
0.4.0
1 year ago
0.3.1
1 year ago
0.7.0
12 months ago
0.5.2
1 year ago
0.4.3
1 year ago
0.3.4
1 year ago
0.6.0
12 months ago
0.5.1
1 year ago
0.4.2
1 year ago
0.3.3
1 year ago
0.0.0
1 year ago