djust-theming | Demo Home Components | Gallery Storybook Editor Diff

Stat Card

python component Charts 8 params
EXAMPLES 3
Revenue
$12,345
+12%
python
stat_card(label='Revenue', value='$12,345', trend='up', trend_value='+12%')
Users
1,234
-3%
python
stat_card(label='Users', value='1,234', trend='down', trend_value='-3%')
Uptime
99.9%
python
stat_card(label='Uptime', value='99.9%', trend='flat')
USAGE
python
from djust_components.components.stat_card import StatCard

component = StatCard(label,
    value,
    trend=None,
    trend_value=None,
    icon=None,
    variant='default',
    custom_class='',
    kwargs)
html = component.render()
PARAMETERS 8
NameTypeDefault
label <class 'str'>
value <class 'str'>
trend typing.Optional[str] None
trend_value typing.Optional[str] None
icon typing.Optional[str] None
variant <class 'str'> 'default'
custom_class <class 'str'> ''
kwargs