Gravity
Search…
Nav
The navigation component contains some commonly used nav elements that you can use throughout your application.
To understand how routing works, please read the Navigation section.

Button

A simple burger-style icon for revealing the drawer nav (see below). This is nested in the header of the <View> component so it's available on any view with a header.

Drawer

The drawer component is a custom sliding drawer that's activated by the nav button (above). The drawer nav will only show links to the views which the current user has permission to view.
You can also swipe right to reveal the drawer nav.
There is also a sign out button within the drawer nav. Feel free to custom the appearance and styling of this component however you see fit.

Service

You can import the service component anytime you need to navigate from a component outside the Navigation router. See the Navigation section for more information.
Last modified 1yr ago
Copy link