Data display
Stat tile
KPI tile with delta
function StatTileDemo() { return ( <View className="w-full flex-row gap-3"> <StatTile label="Active users" value="1,284" delta={4.2} icon={UsersIcon} /> <StatTile label="Sessions" value="318" delta={-1.8} icon={ShoppingCartIcon} /> </View> );}API
<StatTile label value delta? icon? />Get it
Already in every copy of the native kit:
import { StatTile } from '@/components/kit/stat-tile';Details
- Exports
StatTile- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-utils, @halftone-native/percent-change, @halftone-native/text
- Also searched as
- kpi, metric, dashboard
- Registry JSON
- /r/native/stat-tile.json
<div className="grid w-full gap-4 sm:grid-cols-3"> <StatTile label="Revenue" value="£48,210" delta={12.4} deltaLabel="vs last month" /> <StatTile label="Active customers" value="1,284" delta={3.1} deltaLabel="vs last month" /> <StatTile label="Churn" value="2.4%" delta={-0.6} deltaLabel="vs last month" invert /></div>Usage
Two to four across the top of a dashboard. The colour says good or bad, the arrow says up or down.
API
<StatTile label value delta? deltaLabel? invert? />Get it
Already in every copy of the web kit:
import { StatTile } from '@/components/kit/stat-tile';Details
- Exports
StatTile- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- card
- Also searched as
- kpi, metric, number
- Registry JSON
- /r/web/stat-tile.json
Agents: the whole registry is at /llms.txt.