How to get a single input property of a node to draw in the UI panel directly in the panel? I saw this example, but I'm not going to draw the whole XYZ (In my case), I just want to take the input properties individually, but I don't understand how

nodes = context.object.active_material.node_tree.nodes
map = nodes.get('Mapping')
if map:
    layout.prop(map.inputs[1],'default_value[0]',text='Position X')
UILayout.prop index argument

Use the index property for single array elements.

layout.prop(map.inputs[1], "default_value", text="Position X", index=0)


Would point out that this is used in my answer https://blender.stackexchange.com/a/139620/15543 to link posted in your question?

FWIW. For pep8 formatting put a space after a comma in arguments list.

It is recommended in blender to use double quotes for strings, and single quotes for enums.