Skip to content

blocks/app-bar

@fungi.computer/caps


@fungi.computer/caps / blocks/app-bar

AppBarItem = object

A caller-owned running App window or available App launcher.

id: string

label: string

optional icon?: ReactNode

optional active?: boolean

onSelect: () => void

Request focusing a running window or opening an available App.

void

optional onClose?: () => void

Request closing; the caller owns disposal and removal.

void


AppBarProps = object

Caller-owned apps and actions; AppBar owns only presentation and disclosure.

windows: readonly AppBarItem[]

launchers: readonly AppBarItem[]

Team Apps available to launch from the speed dial.

optional sessions?: readonly AppBarItem[]

Recent Sessions supplied by the shell’s session owner.

optional alwaysExpanded?: boolean

optional isOpen?: boolean

Control the compact App dial from the surrounding shell.

optional onOpenChange?: (open) => void

Report requests to open or dismiss the compact App dial.

boolean

void

optional emptyLabel?: ReactNode

launcher: object

label: string

optional icon?: ReactNode

optional primaryAction?: object

A primary action revealed above the launcher, such as starting a chat.

label: string

icon: ReactNode

onSelect: () => void

Invoke the caller-owned primary action.

void

AppBar(__namedParameters): Element

An anchored launcher between persistent running apps and a spring-out app tray.

AppBarProps

Element