KPI Hero + supporting showcase — headline metric + vertical rail of supporting tiles.
Tracks _kpi-hero-supporting.scss from @keenmate/pure-admin-core 2.7.1+.
Default split is 1:1 (50/50). hero_split="2_3" gives the hero 2/3 of
the width; hero_split="3_4" makes the rail a thin sidebar. Container
query collapses to single column under 700px.
Summary
Functions
Renders the headline hero panel inside a kpi_hero_list/1.
Renders one supporting tile in the right-side rail.
Functions
Attributes
title_text(:string) - Defaults tonil.is_live(:boolean) - Defaults tofalse.live_text(:string) - Defaults to"LIVE".footer_text(:string) - Defaults tonil.hero_split(:string) - Defaults tonil.Must be one ofnil,"2_3", or"3_4".class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required) - Hero content — typically akpi_hero_main/1.rail- Right-side rail content — typically multiplekpi_hero_side/1tiles.footer
Renders the headline hero panel inside a kpi_hero_list/1.
Attributes
id(:string) - Defaults tonil.variant(:string) - Defaults tonil.Must be one ofnil,"positive","negative","neutral", or"up_strong".label_text(:string) - Defaults tonil.value_text(:string) - Defaults tonil.unit_text(:string) - Defaults tonil.prefix_text(:string) - Defaults tonil.delta_text(:string) - Defaults tonil.period_text(:string) - Inline period label in the meta row (e.g. "vs last month"). Defaults tonil.target_text(:string) - Inline target label in the meta row; also fed into the popover. Defaults tonil.detail_title_text(:string) - Defaults tonil.previous_value_text(:string) - Defaults tonil.delta_absolute_text(:string) - Defaults tonil.delta_absolute_sentiment(:atom) - Defaults tonil.Must be one ofnil,:pos,:neg, or:warn.detail_rows(:list) - Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
labelvaluemetachartdetail
Renders one supporting tile in the right-side rail.
Attributes
id(:string) - Defaults tonil.variant(:string) - Defaults tonil.Must be one ofnil,"positive","negative","neutral", or"up_strong".label_text(:string) - Defaults tonil.value_text(:string) - Defaults tonil.unit_text(:string) - Defaults tonil.prefix_text(:string) - Defaults tonil.delta_text(:string) - Defaults tonil.detail_title_text(:string) - Defaults tonil.previous_value_text(:string) - Defaults tonil.target_text(:string) - Defaults tonil.delta_absolute_text(:string) - Defaults tonil.delta_absolute_sentiment(:atom) - Defaults tonil.Must be one ofnil,:pos,:neg, or:warn.detail_rows(:list) - Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
labelvaluedeltadetail