mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Setup Inertia (#593)
This commit is contained in:
19
resources/js/components/text-link.tsx
Normal file
19
resources/js/components/text-link.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import { cn } from '@/lib/utils';
|
||||
import { Link } from '@inertiajs/react';
|
||||
import { ComponentProps } from 'react';
|
||||
|
||||
type LinkProps = ComponentProps<typeof Link>;
|
||||
|
||||
export default function TextLink({ className = '', children, ...props }: LinkProps) {
|
||||
return (
|
||||
<Link
|
||||
className={cn(
|
||||
'text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500',
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user