mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-20 01:11:20 +08:00
19 lines
321 B
Plaintext
19 lines
321 B
Plaintext
---
|
|
import { cn } from "@/utils/tailwind";
|
|
|
|
const { class: className, as: Tag = "div", title, href, ...props } = Astro.props;
|
|
---
|
|
|
|
<Tag
|
|
class={cn(
|
|
className,
|
|
"flex flex-row items-center gap-x-2",
|
|
href && "hover:opacity-75 transition-all"
|
|
)}
|
|
href={href}
|
|
{...props}
|
|
>
|
|
<slot name="icon" />
|
|
<p>{title}</p>
|
|
</Tag>
|