BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/better-auth-ui/linked-accounts

Linked Accounts

better-auth-ui/linked-accounts
FreeComponent

Display and manage linked social accounts. Shows all linked social accounts with the ability to unlink them, followed by available providers that can be linked.

Live preview

live · rendered by the registry
Rendered by better-auth-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://better-auth-ui.com/r/linked-accounts.json

Source

src/components/auth/settings/security/linked-accounts.tsxbetter-auth-ui.com/r/linked-accounts.json
1"use client"
2
3import { useAuth, useListAccounts } from "@better-auth-ui/react"
4import { Fragment } from "react"
5import { Card, CardContent } from "@/components/ui/card"
6import {
7 Item,
8 ItemContent,
9 ItemGroup,
10 ItemMedia,
11 ItemSeparator
12} from "@/components/ui/item"
13import { Skeleton } from "@/components/ui/skeleton"
14import { cn } from "@/lib/utils"
15import { LinkedAccount } from "./linked-account"
16
17export type LinkedAccountsProps = {
18 className?: string
19}
20
21/**
22 * Render a card showing linked social accounts and available social providers to link.
23 *
24 * Linked accounts (excluding the "credential" provider) are shown with an unlink control;
25 * available providers are shown with a link control. Button states and labels reflect
26 * ongoing link/unlink activity and use localization for provider-specific text.
27 *
28 * @returns A JSX element containing the linked accounts card
29 */
30export function LinkedAccounts({ className }: LinkedAccountsProps) {
31 const {
32 authClient,
33 localization,
34 multipleAccountsPerProvider,
35 socialProviders
36 } = useAuth()
37
38 const { data: accounts, isPending } = useListAccounts(authClient)
39
40 const linkedAccounts = accounts?.filter(
41 (account) => account.providerId !== "credential"
42 )
43
44 const linkedProviderIds = new Set(linkedAccounts?.map((a) => a.providerId))
45
46 const availableProviders =
47 multipleAccountsPerProvider === false
48 ? socialProviders?.filter((p) => !linkedProviderIds.has(p))
49 : socialProviders
50
51 const allRows = [
52 ...(linkedAccounts?.map((account) => ({
53 key: account.id,
54 account,
55 provider: account.providerId
56 })) ?? []),
57 ...(availableProviders?.map((provider) => ({
58 key: provider,
59 account: undefined,
60 provider
61 })) ?? [])
62 ]
63
64 return (
65 <div>
66 <h2 className="text-sm font-semibold mb-3">
67 {localization.settings.linkedAccounts}
68 </h2>
69
70 <Card className={cn("p-0", className)}>
71 <CardContent className="p-0">
72 <ItemGroup className="gap-0">
73 {isPending
74 ? socialProviders?.map((provider, index) => (
75 <Fragment key={provider}>
76 {index > 0 && <ItemSeparator />}
77 <AccountRowSkeleton />
78 </Fragment>
79 ))
80 : allRows.map((row, index) => (
81 <Fragment key={row.key}>
82 {index > 0 && <ItemSeparator />}
83 <LinkedAccount
84// … truncated

What it pulls in

npm packages

  • @better-auth-ui/react@latest
  • @better-auth-ui/core@latest
  • better-auth
  • lucide-react

Other registry items

  • button
  • card
  • item
  • skeleton
  • sonner
  • spinner

Files it writes

  • src/components/auth/settings/security/linked-accounts.tsx
  • src/components/auth/settings/security/linked-account.tsx

Facts

Registry
better-auth-ui
Type
registry:component
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

Docs on better-auth-ui better-auth-ui.com better-auth-ui/better-auth-ui on GitHub Raw registry item This item as JSON

More from better-auth-ui

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Account Settingsaccount-settingsbetter-auth-uiComponentsFree2 deps
Active Sessionsactive-sessionsbetter-auth-uiComponentsFree5 deps · 2 files
Additional Fieldadditional-fieldbetter-auth-uiComponentsFree5 deps
Adminadminbetter-auth-uiComponentsFree4 deps · 3 files
Anonymousanonymousbetter-auth-uiComponentsFree4 deps · 3 files
API Keyapi-keybetter-auth-uiComponentsFree4 deps · 10 files
Authauthbetter-auth-uiComponentsFree2 deps
Auth Providerauth-providerbetter-auth-uiComponentsFree4 deps · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex