wgm-swap-components
Version:
A React component library for token swap interfaces
18 lines (17 loc) • 867 B
JavaScript
// Main components with built-in providers
export { SwapForm } from './SwapForm';
export { TokenInput } from './TokenInput';
export { SwapButton } from './SwapButton';
export { TokenSelectModal } from './TokenSelectModal';
export { STYLES_CSS_PATH, loadWGMStyles, getWGMStylesContent } from './styles-utils';
// Hooks
export { useTokens } from './hooks/useTokens';
export { useWagmiIntegration } from './hooks/useWagmiIntegration';
export { useFetchQuote } from './hooks/useFetchQuote';
// Services
export { getQuote } from './services/quoteService';
// Note: Multiple ways to import styles:
// 1. Direct import: import 'wgm-swap-components/dist/styles.css';
// 2. Use exported path: import { STYLES_CSS_PATH } from 'wgm-swap-components';
// 3. Programmatic loading: import { loadWGMStyles } from 'wgm-swap-components'; loadWGMStyles();
// Swap token form components