diff --git a/web/src/components/LinkButton.tsx b/web/src/components/LinkButton.tsx new file mode 100644 index 0000000..2ee26e9 --- /dev/null +++ b/web/src/components/LinkButton.tsx @@ -0,0 +1,17 @@ +import { chakra, useRecipe, type RecipeVariantProps } from '@chakra-ui/react'; +import { Link } from '@tanstack/react-router'; +import type linkButtonRecipe from '../recipes/linkButton'; + +const ChakraLink = chakra(Link); + +type LinkButtonProps = React.ComponentProps & + RecipeVariantProps; + +// Router-link in de knopstijl uit het design. Styling komt uit de +// `linkButton`-recipe in het thema. +export default function LinkButton(props: LinkButtonProps) { + const recipe = useRecipe({ key: 'linkButton' }); + const [variantProps, rest] = recipe.splitVariantProps(props); + + return ; +} diff --git a/web/src/components/NavigationBar/NavLink.tsx b/web/src/components/NavigationBar/NavLink.tsx index b62d314..2594b50 100644 --- a/web/src/components/NavigationBar/NavLink.tsx +++ b/web/src/components/NavigationBar/NavLink.tsx @@ -8,10 +8,8 @@ type NavLinkProps = React.ComponentProps; export default function NavLink({ children, ...props }: NavLinkProps) { return (