How to implement "Selection" feature known with sitemaps within pages

What is the YAML that is generated in the Code tab when creating this via the UI? Can you share it? It should be able to be used to generate the Items file.