mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
public commit
This commit is contained in:
23
packages/plasmic/components/WouterLink.tsx
Normal file
23
packages/plasmic/components/WouterLink.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
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",
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user