Files
sigpro-ui/components/Kdb.js
natxocc d900659d88
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
Migrating new components
2026-04-20 23:31:14 +02:00

14 lines
343 B
JavaScript

// components/Kbd.js
import { Tag } from "sigpro";
export const Kbd = (props, children) => {
if (typeof props === "string" || typeof props === "number") {
children = props;
props = {};
}
const { class: className, ...rest } = props;
return Tag("kbd", {
...rest,
class: `kbd ${className || ''}`.trim()
}, children);
};