You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,7 @@ const to = `/list/${category}` // can get long & yucky with lots of variables
153
153
***exact: boolean =false**-if`true` supplied, active class/styles will not be applied inthis example:URL is `/foo/bar` and link `to` is `/foo`. Whereas by default they would match.
154
154
***strict: boolean =false**-if there is a trailing slash in the `to` path or URL, they both must have the slash to match. If there is no slash, they must both have *no* slash.
155
155
***isActive: (match, location) => boolean**- a custom function to determine whether the link is active. Return `true` if active. The `match` argument is identical to React Router and not very useful. The `location` is `state.location`.
156
+
* **ariaCurrent: string** - defaults to `'true'` when active. It's for screen-readers. Learn more [here](https://tink.uk/using-the-aria-current-attribute).
0 commit comments