Adjustable black metal and plastic baby gate.
Mounts on one side. Latches on the other so you can open and close much like a door. Requires using a latch. So stops baby and toddler using.
The width is adjustable. Can likely squeeze into a 2.5 foot opening and I used as big as the top of our stairwell (standard staircase width).
Comes with all pieces.
Can’t remember brand name but it’s pretty solid and cost $200 at least.
I’ve attached a picture of the closest thing I’ve found on Walmart that matches.