Allowing user to edit a list variable of a custom node

I've been able to specify node configuration UI using the standard input HTML elements, but when it comes to a variable that is a list itself, what is a standard way of building its node-config UI?

For example, through the config of a name-matching node, I might ask user to give a list of reference names in advance, so that the reference list can be matched against by the runtime input names.

The user will also need to add/remove/edit the reference list.

I checked the various custom nodes in the official node repo, but couldn't find useful examples.

Thanks in advance!

There are many source code examples eg The change node