Require Account
A component that renders content only when an account is selected.
Introduction
RequireAccount conditionally renders children only when a wallet account is selected for the given chain.
Installation
npx polkadot-ui@latest add require-account
Usage
Basic Example
Please select an account to continue
With Loading State
Resolving accounts...
Props
Prop | Type | Required | Description |
---|---|---|---|
chainId | ChainId | ✅ | The chain ID to scope account selection |
children | ReactNode | ✅ | Content to render when an account is selected |
fallback | ReactNode | ✅ | Content to render when no account is selected |
loadingFallback | ReactNode | ❌ | Optional content to show while loading |