Skip to main content
io.layout.basic() frames a page with a title and a description and puts the display components below each other. Provided by the @awaitio/layout-basic package.
The Users page of the demo app: Change role, Invite user and Reset password in a left column; the title with the Invite user and Reset password buttons, tiles with totals and a users table with linked names, role badges and row menus

Install

Setup

Register it under basic, see Layout components:
app.ts
Under basic, it also frames every page that returns just display components, titled with the page’s name and description.

Usage

actions/users/index.ts

Props

menuItems puts buttons next to the title, each opening an action or a folder’s page in the same tab. Build them with the action’s or page’s route(), the same link a table’s row menu or ctx.redirect takes; the label is the action’s or page’s name unless you pass one:
actions/integrators/index.ts
The Users page header with the buttons Invite user and Reset password next to the title
The first item is the page’s main button; the rest are drawn as secondary ones.