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