BETTER-AUTH-UI.
GitHub ↗

<UserProfile />

A Solid profile form for updating the signed-in user's name, additional fields, and avatar surface.

Usage

import { UserProfile } from "@/components/auth/settings/account/user-profile"

export function UserProfileDemo() {
  return <UserProfile />
}

Set profile.name to false on AuthProvider to hide the display name field:

<AuthProvider authClient={authClient} profile={{ name: false }}>
  {children}
</AuthProvider>

The hidden name field is not validated or included in profile updates. Existing names remain unchanged. This option defaults to true and is independent of emailAndPassword.name, which controls sign-up only.

To hide the whole card when no additional profile fields are visible, also set avatar={{ enabled: false }}. Avatar-only cards keep their upload and delete actions without a separate save button.

Installation

npx shadcn@latest add https://better-auth-ui.com/r/solid/user-profile.json

After install, src/components/auth/settings/account/user-profile.tsx is app-owned. Customize it inside your Solid app as needed.

Props

Prop

Type

Last updated on

On this page