Create LinkButton component

This commit is contained in:
Sat Naing
2022-09-10 15:33:00 +06:30
parent 77f9645ec4
commit 07fdae3c3c
+18
View File
@@ -0,0 +1,18 @@
---
export interface Props {
href: string;
className?: string;
}
const { href, className } = Astro.props;
---
<a type="button" href={href} class={`group ${className}`}>
<slot />
</a>
<style>
a {
@apply hover:text-skin-accent;
}
</style>