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
| Prop | Type | Default | Description |
|---|---|---|---|
title | I18nText | - | Page title (required) |
description | I18nText | - | Secondary line under the title |
icon | string | IconComponent | - | Header icon — string key resolved via getIcon() (preferred) or a direct component |
status | DashboardStatus | - | Status indicator ('online' | 'offline' | 'loading' | 'error') |
statusLabel | I18nText | - | Label next to the status dot |
actions | ReactNode | - | Custom actions rendered before the fullscreen button |
allowFullscreen | boolean | true | Show the fullscreen button (only when a toggle is available) |
isFullscreen | boolean | - | Manual override when used outside ShellPage |
onFullscreenToggle | () => void | - | Manual override when used outside ShellPage |
className | string | - | 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+onFullscreenTogglemanually, 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.
Related
- ShellPage — container providing fullscreen context
- AdminTabs — tabs below the header
- TabToolbar — toolbar inside tab panels