Library
/
Chakra
/
Datadisplay
/
Stat
The stat component is a great way to visualize statistics in a clean and concise way.
rx.chakra.stat(
rx.chakra.stat_label("Example Price"),
rx.chakra.stat_number("$25"),
rx.chakra.stat_help_text("The price of the item."),
)
Example of a stats in a group with arrow.
rx.chakra.stat_group(
rx.chakra.stat(
rx.chakra.stat_number("$250"),
rx.chakra.stat_help_text(
"%50", rx.chakra.stat_arrow(type_="increase")
),
),
rx.chakra.stat(
rx.chakra.stat_number("£100"),
rx.chakra.stat_help_text(
"%50", rx.chakra.stat_arrow(type_="decrease")
),
),
width="100%",
)
The Stat component is used to display some statistics. It can take in a label, a number and a help text.
No component specific props
A stat label component.
No component specific props
The stat to display.
No component specific props
A helper text to display under the stat.
No component specific props
A stat arrow component indicating the direction of change.
A stat group component to evenly space out the stats.
No component specific props
Did you find this useful?