
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@ar-dacity/ardacity-wallet-btn
Advanced tools
A customizable Arweave wallet connect button with animations for React applications
A customizable React component for connecting to Arweave wallets with smooth animations and Tailwind CSS styling.
npm install @ar-dacity/ardacity-wallet-btn
or
yarn add @ar-dacity/ardacity-wallet-btn
import React from 'react';
import ArweaveWalletBtn from '@ar-dacity/ardacity-wallet-btn';
function App() {
return (
<div className="p-4">
<h1 className="text-2xl font-bold mb-4">Arweave Wallet Demo</h1>
{/* Basic usage */}
<ArweaveWalletBtn
onConnect={(address) => console.log('Connected:', address)}
onDisconnect={() => console.log('Disconnected')}
/>
{/* Customized button */}
<ArweaveWalletBtn
variant="outline"
size="lg"
label={{
connect: "Connect to Arweave",
disconnect: "Sign Out",
connecting: "Please wait..."
}}
showAddress={true}
addressDisplayLength={8}
className="mt-4"
/>
</div>
);
}
Prop | Type | Default | Description |
---|---|---|---|
className | string | '' | Additional CSS classes for styling |
variant | 'default' | 'outline' | 'minimal' | 'default' | Visual style variant of the button |
size | 'sm' | 'md' | 'lg' | 'md' | Size of the button |
label | object | { connect: 'Connect Wallet', disconnect: 'Disconnect', connecting: 'Connecting...' } | Button text labels |
showAddress | boolean | true | Whether to show wallet address when connected |
addressDisplayLength | number | 6 | Number of characters to show at start of wallet address |
onConnect | (address: string) => void | - | Callback when wallet is connected |
onDisconnect | () => void | - | Callback when wallet is disconnected |
This component is designed to work with Tailwind CSS. Make sure you have Tailwind CSS set up in your project.
MIT
FAQs
A customizable Arweave wallet connect button with animations for React applications
We found that @ar-dacity/ardacity-wallet-btn demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.