When building complex interfaces, it's very common to render different UI components, based on the device's orientation. This is especially true when dealing with tablets.
In this recipe, we will render a menu based on screen orientation. In landscape, we will render an expanded menu with icons and texts, and in portrait, we will only render the icons.