Custom Graph Radio Buttons

Hello I hope im in the proper forum,

im creating a custom node system. When adding a node I use this code to add two checkboxes to the node:

Node tempDialogueNode
var button = new Toggle("1");
var button2 = new Toggle("2");
tempDialogueNode.extensionContainer.Add(button);
tempDialogueNode.extensionContainer.Add(button2);

However i would like these boxes to work like radio buttons, so only one can be checked at a time.
Is there a system in place like the toggle group for ui?

Is your Toggle in the namespace UnityEngine.UI?

If yes, you are in the right forum.
But you cannot create Toggles with a constructor. You should have compile errors. You rather create prefabs, instantiate them and get the Toggle component out of them.
To make it radio buttons you need to have one “Toggle Group” component and assign that to all toggles.

If no, you are in the wrong forum.