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; } | { kind: "search"; label?: string; }

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

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.


{ kind: "search"; label?: string; }

kind: "search"

Opens the app’s search, which then leaves the top bar. On iOS, with the native tab bar, it is the system’s own search beside the tabs rather than one of them.

optional label?: string

The tab’s label; “Search” in the app’s language when omitted.