Skip to content
Gravity Logo / Docs Gravity home
Browse documentation
Documentation/Gravity Web

Layout

Gravity Web offers four versatile layout options. Layouts contain the common components to be rendered across all views that utilise that layout, for example: navigation and header.

  • Account Layout

  • App Layout

  • Auth Layout

  • Onboarding Layout

Props

PropDescriptionRequiredValue
childrenchildren to renderrequiredcomponent(s)
titleview titlerequiredstring

Usage

You can use a layout by passing its name in the route object.

const route = {
    path: '/dashboard',
    view: Dashboard,
    layout: 'app',
    title: 'account.index.title'
}