Skip to Content
TelamonJS

AdminHeader

Pure header bar with title, icon, description, status, and fullscreen toggle

Pure header bar for admin pages: icon + title + description on the left, status indicator, custom actions, and a fullscreen toggle on the right. Designed to sit at the top of a ShellPage.

import { AdminHeader } from '@telamonjs/ui'

<AdminHeader
  title='Alert Center'
  description='Manage alert rules and notifications'
  icon='Bell'
/>

Props

PropTypeDefaultDescription
titleI18nText-Page title (required)
descriptionI18nText-Secondary line under the title
iconstring | IconComponent-Header icon — string key resolved via getIcon() (preferred) or a direct component
statusDashboardStatus-Status indicator ('online' | 'offline' | 'loading' | 'error')
statusLabelI18nText-Label next to the status dot
actionsReactNode-Custom actions rendered before the fullscreen button
allowFullscreenbooleantrueShow the fullscreen button (only when a toggle is available)
isFullscreenboolean-Manual override when used outside ShellPage
onFullscreenToggle() => void-Manual override when used outside ShellPage
classNamestring-Extra classes

Fullscreen Integration

AdminHeader auto-consumes the ShellPage context via useShellPage:

  • Inside ShellPage: the fullscreen button appears automatically and toggles the shell.
  • Standalone: pass isFullscreen + onFullscreenToggle manually, or the button is hidden.
// Standalone usage (outside ShellPage)
<AdminHeader
  title='Reports'
  isFullscreen={isFs}
  onFullscreenToggle={() => setIsFs((v) => !v)}
/>

Icons by String

Prefer string icon keys resolved through the app's icon registry, registered once at boot with setIconResolver:

<AdminHeader title='Registrations' icon='Database' />

See Provider Setup for the icon resolver configuration.


On this page