Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/shell/hooks/useNarrowTabBar

Cockpit client (features), next. Source: ui/client/features/shell/hooks/useNarrowTabBar.tsx.

Functions#

useNarrowTabBar()#

useNarrowTabBar(pane, onSelect): object

Defined in: ui/client/features/shell/hooks/useNarrowTabBar.tsx:9

Entries and roving-focus keyboard handling of the narrow bottom tab bar (Left/Right/Home/End move focus and select, like the region tab lists).

Parameters#

pane

NarrowPane

onSelect

(pane) => void

Returns#

object

listRef

listRef: RefObject<HTMLDivElement | null>

onKeyDown

onKeyDown: (e) => void

Parameters
e

KeyboardEvent<HTMLElement>

Returns

void

panes

panes: object[] = NARROW_PANES