React Components

Pre-built UI components from @emblemvault/emblem-auth-react for wallet authentication.

Installation

BA
terminal
Loading...

📖 Related Documentation

ConnectButton

A ready-to-use button component that triggers wallet authentication. When disconnected, shows a connect button. When connected, displays vault information with a logout option.

🔌 Provider Required

Must be used within EmblemAuthProvider

Basic Usage

TS
App.tsx
Loading...

Custom Styling & Labels

TS
Header.tsx
Loading...

Props

PropTypeDefaultDescription
classNamestring-Additional CSS classes
styleCSSProperties-Inline styles
connectLabelReactNode"Connect"Custom button content when disconnected
loadingLabelReactNode"Connecting..."Custom content during connection
onConnect() => void-Callback after successful connection
onDisconnect() => void-Callback after disconnection
showVaultInfobooleanfalseShow vault details dropdown when connected
disabledbooleanfalseDisable the button

Features

  • • Automatic loading state during connection
  • • Displays wallet address when connected
  • • Optional vault info dropdown with addresses
  • • Built-in logout functionality
  • • Fully customizable styling and labels
  • • Responsive design