UI component for logging in with Treasure Connect and viewing and managing active account status.

Usage

import { ConnectButton } from "@treasure-dev/tdk-react";

function App() {
  return (
    <ConnectButton appName="My App" />
  );
}

Props

appName

string

  • Application name to display in the connect modal.

appIconUri

string | undefined

  • Application icon to display in the connect modal, if desired.

theme

"light" | "dark" | undefined

  • Theme to use for the connect and account details modals.
  • Defaults to "light".