It only works with the 11 inch iPad Pro, but it's much cheaper and has many of the same features as the Apple Magic Keyboard for iPad 2021, like a trackpad for gesture support. If the price tag is a tad too steep, then check out the Logitech Folio Touch.
Cheaper Alternative: Logitech Folio Touch. That said, it's a great choice if you use an iPad as your main workstation as it allows you to use it as a scaled-down MacBook. Also, while the folio offers additional protection on the iPad's back and front, it doesn't cover the sides. Unfortunately, it's only designed for iPads and can't connect to any other device like an iPhone. Also, if you tend to work at night, every key is individually backlit with a bright white, so they're very visible. There's also a USB-C port on the side of the keyboard, which you can use to charge your iPad. However, it does include a trackpad, so you don't always have to rely on the touchscreen for navigation. Its design is similar to a MacBook keyboard, though it lacks dedicated media keys. The 11 inch model we tested is also compatible with the fourth-generation iPad Air. OMNIPLAN 2 IPAD REVIEW PRO
It comes in two size variants, 11 inch and 12.9 inch, so it works with either size of iPad Pro you own.
This folio board only works with iPads as it uses the Smart Connector to connect with and draw power. The best keyboard for iPad Pro that we've tested is the Apple Magic Keyboard for iPad 2021.