Skip to content

Dashlet

Visual panel for one dashboard or page unit (chart, KPI, grid, list, etc.) with header, optional actions, and loading/error/empty states.

HTML tag: c-e0dfd2e72decc4928b34a21a035798d38

  • dashboard tile wrapping a chart or grid
  • panel with loading, error, or empty states
  • metric section inside ab-dashboard
PropTypeDefaultDescription
titleString
spanNumber1
loadingBooleanfalse
emptyBooleanfalse
errorBooleanfalse
actionsArray
subtitleString
empty_messageStringNo data available
error_messageStringSomething went wrong
borderedBooleantrue
paddedBooleantrue
overflowStringauto
heightNumber
  • On dashboards, always wrap ab-chart and ab-data-grid inside ab-dashlet.
  • Use .title / .subtitle for the panel header.
  • Drive UX states with .loading, .error, .empty (mutually prioritized — see state_priority).
  • Header actions: .actions array or header_actions slot.

Do not skip ab-dashlet when placing charts on ab-dashboard. Do not wrap ab-chart in ab-card inside ab-dashlet — put ab-chart directly in the dashlet default slot; dashlet .title is the panel header. Do not set loading and error true at the same time expecting both UIs.