Add tabindex attribute and prop

This commit is contained in:
Sat Naing
2022-09-21 09:21:40 +06:30
parent 7d6b39abc0
commit d11f23323c
+3 -1
View File
@@ -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}