blocks/app-bar
Import
Section titled “Import”import * as api from "@fungi.computer/caps/blocks/app-bar";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | AppBarItem | A caller-owned running App window or available App launcher. |
| type alias | AppBarProps | Caller-owned apps and actions; AppBar owns only presentation and disclosure. |
| function | AppBar() | An anchored launcher between persistent running apps and a spring-out app tray. |
AppBarItemtype alias
Section titled “AppBarItem”type AppBarItem = object;A caller-owned running App window or available App launcher.
Properties
Section titled “Properties”id: string;label: string;optional icon?: ReactNode;active?
Section titled “active?”optional active?: boolean;onSelect
Section titled “onSelect”onSelect: () => void;Request focusing a running window or opening an available App.
Returns
Section titled “Returns”void
onClose?
Section titled “onClose?”optional onClose?: () => void;Request closing; the caller owns disposal and removal.
Returns
Section titled “Returns”void
AppBarPropstype alias
Section titled “AppBarProps”type AppBarProps = object;Caller-owned apps and actions; AppBar owns only presentation and disclosure.
Properties
Section titled “Properties”container?
Section titled “container?”optional container?: HTMLElement | null;Portal container for the App dial; defaults to the document body.
windows
Section titled “windows”windows: readonly AppBarItem[];launchers
Section titled “launchers”launchers: readonly AppBarItem[];Team Apps available to launch from the speed dial.
sessions?
Section titled “sessions?”optional sessions?: readonly AppBarItem[];Recent Sessions supplied by the shell’s session owner.
launcherLabels?
Section titled “launcherLabels?”optional launcherLabels?: "truncate" | "wrap";Keep long launcher names readable instead of truncating them.
alwaysExpanded?
Section titled “alwaysExpanded?”optional alwaysExpanded?: boolean;isOpen?
Section titled “isOpen?”optional isOpen?: boolean;Control the compact App dial from the surrounding shell.
onOpenChange?
Section titled “onOpenChange?”optional onOpenChange?: (open) => void;Report requests to open or dismiss the compact App dial.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
open |
boolean |
Returns
Section titled “Returns”void
emptyLabel?
Section titled “emptyLabel?”optional emptyLabel?: ReactNode;launcher
Section titled “launcher”launcher: object;label: string;optional icon?: ReactNode;primaryAction?
Section titled “primaryAction?”optional primaryAction?: object;A primary action revealed above the launcher, such as starting a chat.
label: string;icon: ReactNode;onSelect
Section titled “onSelect”onSelect: () => void;Invoke the caller-owned primary action.
Returns
Section titled “Returns”void
AppBar()function
Section titled “AppBar()”function AppBar(__namedParameters): Element;An anchored launcher between persistent running apps and a spring-out app tray.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
AppBarProps |
Returns
Section titled “Returns”Element