We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6bcc1b commit cecefd9Copy full SHA for cecefd9
src/components/nav/NavLink.js
@@ -112,8 +112,10 @@ NavLink.propTypes = {
112
113
/**
114
* Apply 'active' style to this component. Set to "exact" to automatically
115
- * toggle active status when pathname matches href, or to "partial" to
116
- * automatically toggle on a partial match.
+ * toggle active status when the current pathname matches href, or to
+ * "partial" to automatically toggle on a partial match. Assumes that href is
117
+ * a relative url such as /link rather than an absolute such as
118
+ * https://example.com/link
119
*
120
* For example
121
* - dbc.NavLink(..., href="/my-page", active="exact") will be active on
0 commit comments