Skip to content

Components

Registry items are source files, installed with the shadcn CLI from your own instance:

Terminal window
npx shadcn@latest add https://auth.example.com/r/sign-in.json

Each item reports its dependencies; install them with your package manager.

Item Purpose
sign-in email + password, error mapping, redirect on success
sign-up registration, config-driven verification behaviour
forgot-password request a reset link
reset-password set a new password from the link’s token
verify-email consume a verification token
two-factor-challenge TOTP / backup code step
provider-buttons social providers, rendered from the configured set
otp-input shared OTP primitive
auth-card layout shell shared by the screens
auth-provider client context and redirect behaviour
Item Purpose
user-avatar image or initials
user-button session menu
account-settings name, email, image
change-password current + new password
active-sessions devices, revoke
linked-accounts OAuth accounts, link/unlink
security-settings 2FA and passkeys
Item Purpose
organization-switcher list and switch the active organization
organization-list every organization with role
create-organization name and derived slug
organization-general rename, slug, delete
organization-members members, roles, removal
organization-invitations invite, list, revoke
organization-roles runtime roles and permission matrix
can permission gate for the UI
  • auth-provider needs the client. It accepts one from lib/auth-client.ts, which every item that needs it ships. Set window.__OWNAUTH_URL__ before your bundle loads.
  • Permission gates are cosmetic. can hides a button. The API still refuses the action, and that is what you rely on.
  • You own the code. Restyle freely; there is no upstream to fight with, because it is a copy.