Add battery-soc jsx template

This commit is contained in:
2026-08-20 22:48:17 +00:00
parent 6c2da714f2
commit e2ff7d2038
@@ -0,0 +1,18 @@
---
label: battery-soc voorbeeld
description: Batterij laadstatus met laadvermogen
type: battery-soc
author: maik
---
import React from 'react';
export default function BatterySocTemplate({ data }) {
const soc = data?.soc ?? 0;
return (
<div className="widget-soc">
<div className="widget-soc__ring" style={{ '--soc': `${soc}%` }} />
<div className="widget-soc__value">{soc.toFixed(0)}%</div>
</div>
);
}