Migrating new components
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s

This commit is contained in:
2026-04-20 23:31:14 +02:00
parent 6fc32614b1
commit d900659d88
59 changed files with 1824 additions and 1554 deletions

18
components/Radial.js Normal file
View File

@@ -0,0 +1,18 @@
// components/RadialProgress.js
import { Tag } from "sigpro";
export const RadialProgress = (props) => {
const { class: className, value, max = 100, children, ...rest } = props;
const percentage = value != null ? (value / max) * 100 : 0;
const style = `--value: ${percentage}; --max: 100;`;
return Tag("div", {
...rest,
class: `radial-progress ${className || ''}`.trim(),
style: style,
role: "progressbar",
"aria-valuenow": value,
"aria-valuemin": 0,
"aria-valuemax": max
}, children || `${Math.round(percentage)}%`);
};