A browser window around a home energy app: a sidebar with devices, a greeting, a live energy flow from the panels through the house to the battery and grid, monthly savings bars, tomorrow's solar forecast and the next scheduled actions. Tall enough to crop at the bottom of a hero.
The import and the props worth knowing about, in one place.
import { Browser41 } from "@/components/beste/piece/browser41";
<Browser41
url="app.sunleaf.io/home"
brand="sunleaf"
nav={[
{
"label": "Home",
"icon": {
"displayName": "House"
}
},
{
"label": "Solar",
"icon": {
"displayName": "Sun"
}
},
{
"label": "Battery",
"icon": {
"displayName": "Battery"
}
},
{
"label": "EV charging",
"icon": {
"displayName": "Zap"
}
},
{
"label": "Reports",
"icon": {
"displayName": "ChartColumn"
}
}
]}
devicesLabel="Devices"
devices={[
"Inverter",
"Battery",
"Wallbox"
]}
greeting="Good afternoon, Nils"
subtitle="Sunny, 24°C · Peak rate starts at 18:00"
period="Today"
initials="NF"
flow={{
"label": "Energy flow",
"status": "Live",
"source": {
"value": "4.8 kW",
"label": "Solar"
},
"home": {
"value": "2.6 kW",
"label": "Home"
},
"battery": {
"value": "82%",
"label": "Battery"
},
"grid": {
"value": "−1.1 kW",
"label": "Grid"
}
}}
savings={{
"label": "Saved this month",
"value": "$86.40",
"change": "+$12.10 vs last month",
"bars": [
40,
55,
48,
70,
62,
86,
100
]
}}
forecast={{
"label": "Solar forecast · Tomorrow",
"total": "28.4 kWh expected",
"bars": [
8,
18,
32,
50,
70,
88,
100,
94,
76,
54,
30,
12
]
}}
upNext={{
"label": "Up next",
"items": [
{
"title": "Hold battery for peak",
"time": "18:00",
"icon": {
"displayName": "Battery"
}
},
{
"title": "Charge car to 90%",
"time": "01:00",
"icon": {
"displayName": "Zap"
}
}
]
}}
/>