summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/ui/link.tsx
blob: 461206d5862b35da57e8267b9800dc173e64cd86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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} />
}