hone-tip-drawer v0.0.28
hone-tip-drawer
Version: 0.0.27
Description
hone-tip-drawer is a React component built with wagmi & shadCN that allows you to accept direct tips on your website. It supports multiple blockchain networks and various ERC-20 tokens.
Installation
Install the package via npm:
npm install hone-tip-drawerOr via yarn:
yarn add hone-tip-drawerUsage
To use the TipDrawer component, import it into your project and include it in your JSX:
Copy code
import React from 'react';
import { TipDrawer } from 'hone-tip-drawer';
function App() {
return (
<div>
<h1>My Website</h1>
<TipDrawer className="my-custom-class" tipJarAddress={'0x123...'}/>
</div>
);
export default App;
}Features
- Supports multiple blockchains including Ethereum, Polygon, Optimism, and Base.
- Allows tipping with various ERC-20 tokens.
- User-friendly drawer interface for selecting chain and currency.
- Simple integration with existing React applications.
Dependencies
The package relies on the following dependencies:
@radix-ui/react-dialog: ^1.0.5@radix-ui/react-icons: ^1.3.0@radix-ui/react-select: ^2.0.0@radix-ui/react-slot: ^1.0.2@tanstack/react-query: ^5.45.1class-variance-authority: ^0.7.0clsx: ^2.1.1lucide-react: ^0.395.0tailwind-merge: ^2.3.0tailwindcss-animate: ^1.0.7vaul: ^0.9.1viem: ^2.15.1wagmi: ^2.10.2
Development
To build the package, run:
npm run buildLicense
This project is licensed under the MIT License.
Contributing
Contributions are welcome! Please read the contributing guidelines first.
Author
Created by hone1er.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago