mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-09-29 00:07:15 +00:00
13 lines
425 B
TypeScript
13 lines
425 B
TypeScript
"use client"
|
|
|
|
import type { HTMLChakraProps, RecipeProps } from "@chakra-ui/react"
|
|
import { createRecipeContext } from "@chakra-ui/react"
|
|
|
|
export interface LinkButtonProps
|
|
extends HTMLChakraProps<"a", RecipeProps<"button">> {}
|
|
|
|
const { withContext } = createRecipeContext({ key: "button" })
|
|
|
|
// Replace "a" with your framework's link component
|
|
export const LinkButton = withContext<HTMLAnchorElement, LinkButtonProps>("a")
|