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/passkey

Passkey

better-auth-ui/passkey
FreeComponent

Passkey plugin: WebAuthn sign-in button and passkey management card. Registers a passkey sign-in button on the sign-in form and a Passkeys security card in account settings.

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/passkey.json

Source

src/components/auth/passkey/passkey.tsxbetter-auth-ui.com/r/passkey.json
1"use client"
2
3import { useAuth, useAuthPlugin } from "@better-auth-ui/react"
4import { Fingerprint, X } from "lucide-react"
5import { useState } from "react"
6
7import { Button } from "@/components/ui/button"
8import {
9 Item,
10 ItemActions,
11 ItemContent,
12 ItemDescription,
13 ItemMedia,
14 ItemTitle
15} from "@/components/ui/item"
16import { passkeyPlugin } from "@/lib/auth/passkey-plugin"
17
18import {
19 DeletePasskeyDialog,
20 type ListedPasskey
21} from "./delete-passkey-dialog"
22
23export type PasskeyProps = {
24 passkey: ListedPasskey
25}
26
27export function Passkey({ passkey }: PasskeyProps) {
28 const { localization } = useAuth()
29 const { localization: passkeyLocalization } = useAuthPlugin(passkeyPlugin)
30 const [deleteOpen, setDeleteOpen] = useState(false)
31
32 const passkeyName = passkey.name || passkeyLocalization.passkey
33
34 return (
35 <Item>
36 <ItemMedia variant="icon">
37 <Fingerprint />
38 </ItemMedia>
39 <ItemContent>
40 <ItemTitle>{passkeyName}</ItemTitle>
41 <ItemDescription>
42 {new Date(passkey.createdAt).toLocaleString(undefined, {
43 dateStyle: "medium",
44 timeStyle: "short"
45 })}
46 </ItemDescription>
47 </ItemContent>
48 <ItemActions>
49 <Button
50 variant="outline"
51 size="sm"
52 onClick={() => setDeleteOpen(true)}
53 aria-label={passkeyLocalization.deletePasskey.replace(
54 "{{name}}",
55 passkeyName
56 )}
57 >
58 <X />
59
60 {localization.settings.delete}
61 </Button>
62
63 <DeletePasskeyDialog
64 open={deleteOpen}
65 onOpenChange={setDeleteOpen}
66 passkey={passkey}
67 />
68 </ItemActions>
69 </Item>
70 )
71}

What it pulls in

npm packages

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

Other registry items

  • alert-dialog
  • button
  • card
  • dialog
  • empty
  • field
  • input
  • item
  • separator
  • skeleton
  • spinner

Files it writes

  • src/lib/auth/auth-plugin.ts
  • src/lib/auth/passkey-plugin.ts
  • src/components/auth/passkey/passkey-button.tsx
  • src/components/auth/passkey/add-passkey-dialog.tsx
  • src/components/auth/passkey/delete-passkey-dialog.tsx
  • src/components/auth/passkey/passkeys-empty.tsx
  • src/components/auth/passkey/passkey-skeleton.tsx
  • src/components/auth/passkey/passkeys.tsx
  • src/components/auth/passkey/passkey.tsx

Facts

Registry
better-auth-ui
Type
registry:component
Access
Free
Files written
9
Licence
MIT
First indexed
2026-08-02
Last confirmed
yesterday

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
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex