When there's no external display connected to your MacBook, closing it puts the entire laptop to sleep. That's straightforward enough. When there is an external display, mouse, and keyboard connected, ...
The news of the new M3 MacBook Air came with a little bit of a surprise: It can run two external displays with the laptop closed. That’s a change from the single-display support for all other M1, M2, ...