Themes

Router/Functional Components/Link
Link

Link to a url.

Props

Name
Description
Type
activeClass

The class to apply if the urlMatch matches.

string
class

The class to apply to the rendered element.

string | Record<string, boolean>
disabled

If the link is disabled.

boolean
element

Element to use as a link. Default: a

string
exact

If the urlMatch should be exact.

boolean
external

If the Link is external. No baseUrl applied.

boolean
forceRefresh

If the Link should break out of the router, and force a page load.

boolean
onClick
(e: MouseEvent ) => boolean | void
strict

If the urlMatch should be strict.

boolean
updateScroll

If the windows scroll position should be set to 0,0

boolean
url

The url to link to.

string
urlMatch

If matches, the activeClass is applied. (default: url)

Path

Path

Path = string | RegExp | string | RegExp[]