You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data-rich applications built using Preswald often require a visual highlight of KPIs like total revenue, conversion rate, or average score. Currently, Preswald lacks a dedicated UI component to display such single-value summaries prominently and attractively.
There is a clear need for a reusable, visually prominent “big number” metric card.
Feature Overview
Introduce a new big_number() UI component for the Preswald SDK, enabling developers to render high-impact numeric KPIs in a card format, optionally with a label, subtext, icon, or trend indicator.
Data-rich applications built using Preswald often require a visual highlight of KPIs like total revenue, conversion rate, or average score. Currently, Preswald lacks a dedicated UI component to display such single-value summaries prominently and attractively.
There is a clear need for a reusable, visually prominent “big number” metric card.
Feature Overview
Introduce a new
big_number()
UI component for the Preswald SDK, enabling developers to render high-impact numeric KPIs in a card format, optionally with a label, subtext, icon, or trend indicator.Example Usage in Python
🎯 Functional Requirements
Primary Value (Required):
int
,float
, orstr
values.Label:
Delta Indicator:
delta_color: str
to customize appearance (green
,red
,gray
).Icon:
lucide-react
).UI/UX Mock
🛠️ Engineering Tasks
Frontend Implementation:
BigNumberWidget.jsx
infrontend/src/components/widgets/
.Card
,Typography
, and Tailwind utility classes for layout.value
,label
,delta
,deltaColor
,icon
,description
.SDK Integration:
big_number()
topreswald/interfaces/components.py
.Testing:
Docs & Demo:
docs/sdk/big_number.mdx
.examples/iris/hello.py
or a newmetrics_demo
example.preswald/docs/usage/examples.mdx
.The text was updated successfully, but these errors were encountered: