mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Add tabindex attribute and prop
This commit is contained in:
@@ -4,14 +4,16 @@ export interface Props {
|
|||||||
className?: string;
|
className?: string;
|
||||||
ariaLabel?: string;
|
ariaLabel?: string;
|
||||||
title?: string;
|
title?: string;
|
||||||
|
tabindex?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { href, className, ariaLabel, title } = Astro.props;
|
const { href, className, ariaLabel, title, tabindex } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<a
|
<a
|
||||||
type="button"
|
type="button"
|
||||||
href={href}
|
href={href}
|
||||||
|
tabindex={tabindex}
|
||||||
class={`group ${className}`}
|
class={`group ${className}`}
|
||||||
aria-label={ariaLabel}
|
aria-label={ariaLabel}
|
||||||
title={title}
|
title={title}
|
||||||
|
|||||||
Reference in New Issue
Block a user