KPI Bento layout showcase — magazine-style asymmetric tile sizing.
Tracks _kpi-bento.scss from @keenmate/pure-admin-core 2.7.1+. Default
is the 6-tile hero-left layout; bento_layout="hero_right" mirrors it
(hero on the right); bento_layout="5_tile" is hero + 4 supporting.
Tile placement is by source order — markup stays identical across
layout modifiers. Set row_height to override --pa-kpi-bento-row-height
(default 12rem).
Summary
Functions
Attributes
title_text(:string) - Defaults tonil.is_live(:boolean) - Defaults tofalse.live_text(:string) - Defaults to"LIVE".footer_text(:string) - Defaults tonil.bento_layout(:string) - Defaults tonil.Must be one ofnil,"hero_right", or"5_tile".row_height(:string) - CSS length for--pa-kpi-bento-row-height(default upstream12rem). Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)footer
Renders one cell inside a kpi_bento/1 grid.
Set is_hero on the first tile (the larger left/right half panel)
so its value font-size + chart height bump up via pa-kpi-bento-tile--hero.
Attributes
id(:string) - Defaults tonil.variant(:string) - Defaults tonil.Must be one ofnil,"positive","negative","neutral","up_strong", or"down_strong".is_hero(:boolean) - Defaults tofalse.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
labelvaluedeltachartdetail