How do I make an inventory system?

How do I make an inventory system where the UI shows a couple of boxes with whatever is picked up in there?

This is important for a game I’m working on! If someone wanna help, then plz do

this would be very helpful atm

every button in the UI would need to be an object

Can you be a little more elaborate???

I was thinking of a menu, but you could do the same with inventory.

To just show what you have, you could just make allot of specific animation or
you could make every slot an object that can move or with set animations.