0.0.4 โข Published 5 months ago
@crypture/modals v0.0.4
@crypture/modals
A React component library for crypto-related modals and UI elements.
Designed to simplify wallet connections, transaction confirmations, and other blockchain interactions with elegant and customizable modal components.
โจ Features
- ๐ช Wallet connection modals
- ๐ Transaction confirmation dialogs
- ๐งฉ Easily extendable and themeable
- ๐งผ Clean, minimal design using Chakra UI and emotion CSS
- โ๏ธ Built with TypeScript and React
๐ฆ Installation
npm install @crypture/modals
# or
yarn add @crypture/modals
โ๏ธ Usage
// App.tsx
import { Modal } from '@crypture/modals';
function App() {
return (
<div>
<Modal label="Connect wallet" />
</div>
);
}
Prop | Type | Description |
---|---|---|
label | string | The button label to trigger modal |
appName | string | App name displayed within the modal |
button | ReactNode | Trigger button component |
loadingDuration | ReactNode | Shimmer loading time in milliseconds |