BETTER-AUTH. UI
Components

<AccountsCard />

Displays and manages linked social accounts

Import

import { AccountsCard } from "@better-auth/ui-react/components";

Installation

pnpm dlx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/accounts-card.json
npx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/accounts-card.json
yarn dlx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/accounts-card.json
bun x shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/accounts-card.json

Usage

<AccountsCard />

Props

NameTypeDefaultDescription
classNamestringundefinedAdditional CSS classes for styling
classNamesSettingsCardClassNamesundefinedClass names for individual card components
localizationPartial<AuthLocalization>undefinedLocalization object for translations

Example

import { AccountsCard } from "@better-auth/ui-react/components";

export function AccountSettings() {
  return (
    <div className="space-y-4">
      <AccountsCard />
    </div>
  );
}

Features

  • View all linked social accounts (Google, GitHub, Discord, etc.)
  • Link new social accounts
  • Unlink existing social accounts
  • Shows provider icons and account information
  • Built-in loading states
  • Prevents unlinking if it's the only authentication method