interface UsernameFieldProps

Passed to UsernameField by ProfileManageTab.

Properties

username: string
save: (username: string) => Promise<string>

Sends the new name to PATCH /api/users/:key/username, and resolves to the name the server kept. A refusal rejects with its message, which the field shows.

Usage

import { type UsernameFieldProps } from "src/components/profile/UsernameField.tsx";