live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/auth-client


@orangecheck/auth-client / OcAccountPill

Function: OcAccountPill()

function OcAccountPill(__namedParameters: OcAccountPillProps): 
  | ReactElement<any, string | JSXElementConstructor<any>>
  | null;

Defined in: src/components.tsx:365

Shows the signed-in user as a short pill: bc1q…abcd sign out.

Renders nothing while loading or when no user is signed in — pair with <OcSignInButton> for the anonymous case.

Parameters

ParameterType
__namedParametersOcAccountPillProps

Returns

| ReactElement&lt;any, string | JSXElementConstructor&lt;any>> | null