Use And Configure Summary Link Web Part. You can also style the items and group headers in these Web Parts so they use a set of available styles to render. Using the code above in the Content query web part all links clicked from the summary link web part open in a dialog box.

You can add a new link which will let you choose between link or person add groups to display links in groupings configure the styles and layouts The default is to have an image to the left and to reorder the links. Then you would need to. I would like to be able to control Which exact links oin the summary web part.
If you have already added link you can check the box to apply the style you have defined to existing links.
However I would like to edit the spaces that it places before each list item. Here you click on the Quick links highlighted in red to give a title for the web part. If you have already added link you can check the box to apply the style you have defined to existing links. It has groupings and uses Fluent UI Icons which are super easy to grab and use.