mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 19:41:02 +08:00
Create LinkButton component
This commit is contained in:
@@ -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>
|
||||||
Reference in New Issue
Block a user