= ({
tabIndex: tabIndex,
}
: null;
- if ( role === "image" ) {
+ if (role === 'image') {
return (
= ({
}}
/>
);
- }else{
+ } else {
+ const Tag = tag;
return (
- = ({
}}
>
{description}
-
+
);
}
}
@@ -409,6 +416,7 @@ export const A11y: React.FC = ({
href,
disabled,
startPressed,
+ tag,
actionCall,
focusCall,
]);