Rebuild all components
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s

This commit is contained in:
2026-04-21 18:00:17 +02:00
parent d900659d88
commit 16afea2768
67 changed files with 1820 additions and 2132 deletions

View File

@@ -1,19 +1,12 @@
// components/Skeleton.js
import { Tag } from "sigpro";
export const Skeleton = (props) => {
const { class: className, ...rest } = props;
return Tag("div", {
...rest,
class: `skeleton ${className || ''}`.trim()
});
};
export const Skeleton = (props) => Tag("div", { ...props, class: `skeleton ${props.class ?? ''}` });
export const SkeletonText = (props) => {
const { class: className, lines = 3, ...rest } = props;
return Tag("div", { ...rest, class: "space-y-2" },
Array.from({ length: lines }, (_, i) =>
Tag("div", { class: `skeleton h-4 w-full ${className || ''}`.trim() })
return Tag("div", { ...props, class: "space-y-2" },
Array.from({ length: props.lines || 3 }, () =>
Tag("div", { class: `skeleton h-4 w-full ${props.class ?? ''}` })
)
);
};