You can use it wired with the included Apple lightning cable or wirelessly via Bluetooth. It doesn't have a wrist rest or any adjustable incline settings, but its low profile should provide a comfortable typing experience for most people, even during extended periods. It's lightweight and has a rigid aluminum body that exhibits zero visible flex.
The best compact keyboard for Mac is the Apple Magic Keyboard 2017.