Skip to content

io.display.heading

Represents a display.heading component.

Usage

ts
await io.display.heading(`User - ${name}`, {
  description: "Profile details",
  menuItems: [
    {
      label: "Edit profile",
      route: "edit-user",
      params: { userId: id },
    },
  ],
})
python
await io.display.heading(
    f"User - {name}",
    description="Profile details",
    menu_items=[
        {
            "label": "Edit profile",
            "route": "edit-user",
            "params": {"userId": id },
        },
    ],
)

example of Forge app with display.heading component