diff --git a/example/src/App.js b/example/src/App.js index 289feff..b6dce62 100644 --- a/example/src/App.js +++ b/example/src/App.js @@ -220,10 +220,7 @@ export default function App() { - + = ({ debug = false, a11yElStyle, startPressed = false, + tag = 'p', hidden = false, ...props }) => { @@ -333,7 +339,7 @@ export const A11y: React.FC = ({ 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, ]);