Skip to content

BottomBarItemModel

BottomBarItemModel = { icon?: string; kind: "resource"; label: string; resource: string; } | { icon?: string; kind: "page"; label: string; page: string; } | { href: string; icon?: string; kind: "link"; label: string; }

Defined in: packages/schema/src/model.ts:1077

A tab of a bottom bar on phones: icon above an explicit label.

{ icon?: string; kind: "resource"; label: string; resource: string; }

optional icon?: string

The tab’s icon; the resource’s sidebar icon when omitted.

kind: "resource"

Opens a resource’s list.

label: string

The tab’s label.

resource: string

The resource.


{ icon?: string; kind: "page"; label: string; page: string; }

optional icon?: string

The tab’s icon; the page’s own when omitted.

kind: "page"

Opens a composed page.

label: string

The tab’s label.

page: string

The page.


{ href: string; icon?: string; kind: "link"; label: string; }

href: string

The address: https:, http: or mailto:.

optional icon?: string

The tab’s icon.

kind: "link"

Opens an address outside the admin in a new tab.

label: string

The tab’s label.