Stat

DaisyUI

Stat is used to show numbers and data in a block.

Basic Stat
Total Page Views
89,400
21% more than last month
Stat with Icons

Use StatFigure for icons or images.

Total Likes
25.6K
21% more than last month
Page Views
2.6M
21% more than last month
Vertical Stats

Stack stats vertically.

Downloads
31K
Jan 1st - Feb 1st
New Users
4,200
↗︎ 400 (22%)
New Registers
1,200
↘︎ 90 (14%)
Stat with Actions

Add buttons with StatActions.

Account balance
$89,400
Current balance
$89,400
Code Example
use rsxui::components::{Stats, Stat, StatTitle, StatValue, StatDesc};
use rsx_macros::rsx;
let html = rsx! {
    <Stats>
        <Stat>
            <StatTitle>"Views"</StatTitle>
            <StatValue>"89,400"</StatValue>
            <StatDesc>"+21%"</StatDesc>
        </Stat>
    </Stats>
};