Stat Tile
Compact KPI metric tile with tabular value, trend delta badge, and caption.
v0.3.1NativeWindStyleSheetiOSAndroidExpo GoWeb
Preview
Installation
npx nativra-cli add stat-tileWrites StatTile.tsx to components/ui, rewrites imports to your aliases and records hashes in nativra.lock.json, along with 1 registry dependency. Existing files are never overwritten without asking.
Want to try it first? Open it in the playground: a real React Native project in your browser, with this item installed by the CLI.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | required | Metric title |
| value | string | required | Primary formatted KPI value |
| delta | string | undefined | Percentage or numeric change pill |
| trend | "up" | "down" | "neutral" | "up" | Semantic color of the delta badge |
| caption | string | undefined | Supporting comparison text |
Source
Exactly what the CLI writes, before your import aliases are applied.