[**@fungi.computer/caps**](../README.md) --- [@fungi.computer/caps](../README.md) / components/app-header # components/app-header ## Functions ### registeredAppHeaders() ```ts function registeredAppHeaders(): ReadonlySet; ``` The registered header elements, in no particular order. #### Returns `ReadonlySet`\<`HTMLElement`\> --- ### subscribeAppHeaders() ```ts function subscribeAppHeaders(listener): () => void; ``` Call back whenever a header is registered or released. #### Parameters | Parameter | Type | | ---------- | ------------ | | `listener` | () => `void` | #### Returns () => `void` --- ### useAppHeaderRef() ```ts function useAppHeaderRef(): (element) => void; ``` A ref for the App's own top header row. While the element is mounted and touches the top of the viewport, toasts open below it; it keeps clear of a header that wraps, grows on touch or scrolls away. The element also carries `data-caps-app-header`, so a proof can find it. #### Returns (`element`) => `void`