Vehicle Card
Connectors · VehicleCard
An electric car: charge in percent with the limit marked on the bar, range, charging state with power and when it is done, lock and climate as buttons, the inside temperature and where it is.
Model YLong Range · 2024
58%287 km range
Charging · 11 kWDone by 6:30 AMLimit 80%
Home · Garage
Locked · Climate off · Inside 9 °C
Props
VehicleCard
| Prop | Type | Notes |
|---|---|---|
name | string | Required |
model? | string | |
battery | number | Battery (or tank) in percent. |
range? | number | Range in km. |
limit? | number | The charge limit in percent, marked on the bar. |
charging? | "charging" | "complete" | "plugged" | "unplugged" | |
power? | number | Charging power in kW while charging. |
until? | Date | string | number | When charging reaches the limit. |
locked? | boolean | |
inside? | number | Inside temperature in °C. |
climateOn? | boolean | |
location? | ReactNode | |
onLock? | (locked: boolean) => void | |
onClimate? | (on: boolean) => void | |
service? | ServiceRef | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |