mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
24 lines
509 B
TypeScript
24 lines
509 B
TypeScript
import type { CodeComponentMeta } from "@plasmicapp/host";
|
|
import { Link } from "wouter";
|
|
|
|
export function WouterLink({ href, className, children, ...props }) {
|
|
return (
|
|
<Link href={href ?? "#"} className={className} {...props}>
|
|
{children}
|
|
</Link>
|
|
);
|
|
}
|
|
|
|
export const WouterLinkMeta: CodeComponentMeta<any> = {
|
|
name: "WouterLink",
|
|
importPath: import.meta.dir,
|
|
props: {
|
|
href: {
|
|
type: "href",
|
|
},
|
|
children: {
|
|
type: "slot",
|
|
},
|
|
},
|
|
};
|