Create "mode buttons" in UIToolkit editor?

Hello, I’ve got a custom inspector editor using UIToolkit. I’d like to create “mode buttons” that work exactly like the ones in the UIBuilder, such as the Direction and Wrap selectors in flexbox.

Unity_NYQUF7vyPb

I didn’t see any widgets that act like these, even with the editor-only widgets enabled.

Any pointers? Or is there any place I can look at how the UIBuilder sets these up? Still pretty new to UIToolkit, thanks!

1 Like