Migrating new components
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
This commit is contained in:
14
components/Kdb.js
Normal file
14
components/Kdb.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// 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);
|
||||
};
|
||||
Reference in New Issue
Block a user