React components for Zap Protocol liquidity operations (add/increase liquidity) with PancakeSwap integration. Current stable version: 1.2.2. Release cadence: irregular, tied to KyberSwap widget updates. Key differentiators: provides embeddable UI for zapping into PancakeSwap pools, supports custom fee addresses, and offers theme matching (dark/light). Requires React 16.8+ and peer dependencies react-dom. Includes TypeScript types and examples.
npm install kane-zap-migration-widgetsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Renders a liquidity widget with required props: source, account, networkChainId, chainId, poolAddress.
Ensure React and react-dom are installed and version >=16.8.0.
Provide a valid Ethereum address or connect wallet before passing.
Use the current address string, but check changelog for updates.
Install react@>=16.8.0 and react-dom@>=16.8.0.
Run npm install @kyberswap/pancake-liquidity-widgets.
Use import { LiquidityWidget } from '@kyberswap/pancake-liquidity-widgets'.