Building UI Components

By Components i mean, forms, scroll bars, textboxes… ect.

I’m making a game and debating on the best approach to handling this component.
I’m curious as to what the community recommends.

thanks
j.