SongGuess
    Preparing search index...
    • Input field component for editing and submitting a username. Supports both enter-key submission and button-based submission. Automatically validates the username against the username regex and updates visually on valid/invalid state.

      Parameters

      • onEnd: {
            onEnd: (editedName: string, spectator: boolean) => void;
            requireEnter?: boolean;
            showButtons?: boolean;
        }

        Callback function called when the user submits a valid username

      Returns Element