diff --git a/packages/react-router-dom/modules/NavLink.js b/packages/react-router-dom/modules/NavLink.js index 62659ec47e..a097966ea3 100644 --- a/packages/react-router-dom/modules/NavLink.js +++ b/packages/react-router-dom/modules/NavLink.js @@ -14,6 +14,7 @@ const NavLink = ({ activeStyle, style, isActive: getIsActive, + ariaCurrent, ...rest }) => ( ) @@ -43,11 +45,13 @@ NavLink.propTypes = { className: PropTypes.string, activeStyle: PropTypes.object, style: PropTypes.object, - isActive: PropTypes.func + isActive: PropTypes.func, + ariaCurrent: PropTypes.oneOf(['page', 'step', 'location', 'true']) } NavLink.defaultProps = { - activeClassName: 'active' + activeClassName: 'active', + ariaCurrent: 'true' } export default NavLink