What problem does it solve?
Building cryptocurrency withdrawal UIs in React or Next.js often requires managing the Bluvo state machine in every component or wiring complex boilerplate. Bluvo-react provides a set of hooks that wrap the @bluvo/sdk-ts state machine, eliminating the need for context providers.
Core Features & Use Cases
- Hooks-based withdrawal flow: useBluvoFlow, useFlowMachine, useWithdrawMachine, and useWalletPreviews manage state and actions directly in React components.
- No providers required: Each hook creates its own client instance and subscribes to state changes without a global context.
- Next.js App Router friendly: Designed for client components and works with Next.js App Router when you add "use client" in the component.
- Wallet previews & integration: Provides wallet previews and utilities to start, quote, and preview wallets during the flow.
Quick Start
Install the package and import the hooks into a client component to start using the withdrawal flow.