From 5e53f8764e2b4778fb6d133675432eb1358a03e8 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Sat, 24 Jan 2026 11:19:04 +0700 Subject: [PATCH] chore: update href type --- src/components/Button.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 2f209ece..b55e5e24 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -2,11 +2,12 @@ import react from 'react'; import Link from 'next/link'; import { cn } from '@/lib/helper'; import { Color } from '@/types/theme'; +import { UrlObject } from 'url'; export interface ButtonProps extends react.ComponentProps<'button'> { variant?: 'soft' | 'outline' | 'dash' | 'ghost' | 'link' | 'active'; color?: Color; - href?: string; + href?: string | UrlObject; isLoading?: boolean; target?: string; rel?: string;