marimo.stat(value: str | int | float, label: str | None = None, caption: str | None = None, direction: Literal['increase', 'decrease'] | None = None, bordered: bool = False) Html#

Display a statistic.

Optionally include a label, caption, and direction.


  • value: the value to display

  • label: the label to display

  • caption: the caption to display

  • direction: the direction of the statistic, either increase or decrease

  • bordered: whether to display a border around the statistic


An Html object representing the statistic.