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

@orangecheck/auth-client


@orangecheck/auth-client / OcAccountChip

Function: OcAccountChip()

function OcAccountChip(__namedParameters: OcAccountChipProps): 
  | ReactElement<any, string | JSXElementConstructor<any>>
  | null;

Defined in: src/components.tsx:60

Single header-account affordance for every ochk.io subdomain.

anonymous → "sign in" link signed in → pill bc1q…7ke3 ▾ that opens a popover with: • § signed in (label) • full address (monospace, break-all) • → dashboard • → sign out

The popover closes on outside click or Escape. Reasonable inline styles cover the dark-mode default; override per-part via the className props or via the [data-oc-account-chip-*] data attributes.

Parameters

ParameterType
__namedParametersOcAccountChipProps

Returns

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