Files
opencode/packages/desktop/src/ui/link.tsx
2025-10-03 09:04:28 -05:00

14 lines
400 B
TypeScript

import { A } from "@solidjs/router"
import { splitProps } from "solid-js"
import type { ComponentProps } from "solid-js"
export interface LinkProps extends ComponentProps<typeof A> {
variant?: "primary" | "secondary" | "ghost"
size?: "sm" | "md" | "lg"
}
export function Link(props: LinkProps) {
const [, others] = splitProps(props, ["variant", "size", "class"])
return <A {...others} />
}