Unit number
A number with a unit switch (km/mi, °C/°F, kg/lb, km/h/mph or custom) that converts with rolling digits and per-unit precision.
Preview
Morning ride
Units follow your last choiceAverage speed
Outside
Bike weight
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | — | The value in the base (first) unit. |
| units | "distance" | "temperature" | "mass" | "speed" | Unit[] | — | A preset or your own units (id, symbol, name, fromBase, decimals). |
| label | string | — | Name of the quantity. |
| unit | string | — | Controlled unit id. |
| defaultUnit | string | first unit | Initial unit when uncontrolled. |
| onUnitChange | (unit: string) => void | — | Called when the unit changes. |
| size | "sm" | "md" | "lg" | "md" | Number size. |
| locale | string | "en-US" | Number formatting locale. |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
