Layout
This is the minimum viable HTML boilerplate for UI components to work out.
You may want to tweak the viewport
meta tag, but this is a good starting point.
TopBar
The page should have a TopBar
even if you don't plan to use it. That’s because the topbar is always visible in mobile layout, where it functions to toggle the main navigation menu.
Main
The Main
draws the scrollbar now that body
overflow is hidden. This setup will let us use absolute position to emulate fixed position, which doesn't work right inside iframes on mobile devices.
MainContent
The MainContent
element should contain more or less everything your app has to show.
Asides
If you're using Asides, it’s important to place them outside Main
like this:
With this in mind, you are ready to start using components.