PhiaUi.Components.Data.ChartNoData (phia_ui v0.1.17)

Copy Markdown View Source

Empty state placeholder for charts — displays when no data is available.

Inspired by Tremor's NoData component. Renders a dashed border container with a centered message.

Examples

<.chart_no_data />
<.chart_no_data text="No results found" class="h-80" />

Summary

Functions

chart_no_data(assigns)

Attributes

  • text (:string) - Message to display. Defaults to "No data".
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.