AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223
  1. import { Link } from '@inertiajs/react';
  2. import type { ComponentProps } from 'react';
  3. import { cn } from '@/lib/utils';
  4. type Props = ComponentProps<typeof Link>;
  5. export default function TextLink({
  6. className = '',
  7. children,
  8. ...props
  9. }: Props) {
  10. return (
  11. <Link
  12. className={cn(
  13. 'text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500',
  14. className,
  15. )}
  16. {...props}
  17. >
  18. {children}
  19. </Link>
  20. );
  21. }