Components
19 components extracted from the Prometheus UI codebase.
CodeBlock
Syntax-highlighted code display container with codebox background.
Data DisplayDataTable
Generic sortable data table with custom cell renderers.
Data DisplayEmptyState
Centered empty state with icon, message, and optional action.
UtilityEndpointLink
Scrape endpoint URL display with query parameter badges.
Data DisplayErrorAlert
Standardized alert for error, warning, and info messages.
UtilityFilterToolbar
Unified filter bar with search, state filter, and optional collapse button.
FiltersHealthPanel
Accordion item with health-state colored left border. Resolves AlertsPage/RulesPage inconsistency.
Status & HealthInfoCard
Card with icon + title header for status/info pages.
LayoutInfoPageLayout
Centered, max-width page layout wrapper for info pages.
LayoutKeyValueTable
Two-column key-value display for build info, runtime info, flags.
Data DisplayLabelBadge
Performance-optimized metric label pills using plain spans.
LabelsNavButton
Header navigation link with active state.
NavigationPoolAccordion
Accordion for scrape pool / target group display.
DomainPrometheusAppShell
Application layout shell with always-dark header.
LayoutSeriesName
Metric label set display with optional clickable copy-to-clipboard.
Data DisplaySettingsPanel
Popover panel for user settings (checkboxes, numbers).
UtilityStateMultiSelect
Colored pill multi-select for state/health filtering.
FiltersStatusBadge
Unified health/state badge. Accepts any status vocabulary (firing, up, ok, etc.).
Status & HealthThemeToggle
Cycles light → dark → auto color scheme.
Utility