Props for integrating the React component in your app.
tyresPartial<Record<TyrePosition, TyreReading | null>> | null- Measured tyre pressures in bar and optional temperatures in °C. Omitted positions in a supplied map are unavailable. Pass null for an unavailable feed.
recommendedBarnumber- Optional vehicle recommendation in bar. Current readings below 85% of it are flagged low.
maxPressureBarnumber- Optional vehicle-specific upper limit in bar, at least as high as recommendedBar. Readings above it are flagged as overinflated. The demo uses 3.2 bar.
batteryPercentnumber | null- Vehicle battery percentage. Values of 25 or below appear in orange. Null hides the reading.
staleboolean (optional)- Labels last reported readings as out of date and suppresses current limit warnings.
closuresPartial<Record<TyrePosition | 'port', boolean>> (optional)- Confirmed door and charging-port states. Controlled changes use onClosureChange and await confirmation from the host.
initialLockedboolean- Initial lock state. Defaults to true.
onLockChange(locked: boolean) => void- Reports automatic unlocking when a door first opens on an initially locked car.
onClosureChange(closure: CarClosure, open: boolean) => void- Called when a door or the charge port changes state.
onTyreSelect(position: TyrePosition) => void- Reports the selected tyre to controls outside the widget.