Something went wrong. Try again.
My blog and portfolio (mirror of https://git.skye.codes/skyecodes/website) skye.codes
Something went wrong. Try again.
12345678910111213141516171819---type Props = { href: string; external?: boolean; underline?: boolean;}
const {href, external, underline = true, ...rest} = Astro.props;---
<a href={href} target={external ? "_blank" : "_self"} class="inline-block decoration-black/15 dark:decoration-white/30 hover:decoration-black/25 hover:dark:decoration-white/50 text-current hover:text-black hover:dark:text-white transition-colors duration-300 ease-in-out" class:list={[{underline: underline}]} {...rest}> <slot/></a>