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

PropTypeRequiredDescription
chainIdChainIdThe chain ID to scope account selection
childrenReactNodeContent to render when an account is selected
fallbackReactNodeContent to render when no account is selected
loadingFallbackReactNodeOptional content to show while loading