Patterns · Marketing
StatBand
Since v3.1.0
A band of headline numbers that count up as they scroll into view. StatBandItem is named apart from the StatCard pattern. Server component.
import { StatBand } from '@nexub/marketing';Examples
Default
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | React.ReactNode | — | A heading above the stats. |
| StatBandItem valuerequired | string | number | — | A number counts up from zeros when it scrolls into view; the server HTML keeps the real value. |
| StatBandItem labelrequired | React.ReactNode | — | What the number counts. |
| StatBandItem prefix / suffix | string | — | E.g. "$" or "+". |
| StatBandItem tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'leap' | 'bookub' | 'payub' | 'founderub' | 'info' | The number's colour (accent roles, AA as large text). |
| StatBandItem format | Intl.NumberFormatOptions | — | Number formatting. |
On iOS & Android
Web only
StatBand has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.