design-react-kit
Version:
Componenti React per Bootstrap 5
14 lines • 667 B
JavaScript
import React from 'react';
import classNames from 'classnames';
export const Skiplink = ({ ariaLabel = null, className, tag = 'div', nav = false, testId, children, ...attributes }) => {
const Tag = nav ? 'nav' : tag;
const classes = classNames(className, 'skiplinks');
if (nav) {
return (React.createElement(Tag, { "aria-label": ariaLabel, className: classes, ...attributes, "data-testid": testId },
React.createElement("ul", null, children)));
}
else {
return React.createElement(Tag, { "aria-label": ariaLabel, className: classes, ...attributes, "data-testid": testId });
}
};
//# sourceMappingURL=Skiplink.js.map