React Link
React components and hooks for type-safe navigation.Link Component
The primary navigation component for React applications.Props
All LinkOptions from the core API, plus React-specific props:ReactNode
Link content.
string | (isActive) => string
CSS class name. Can be a function receiving active state.
CSSProperties | (isActive) => CSSProperties
Inline styles. Can be a function receiving active state.
(e: MouseEvent) => void
Click handler.
(e: MouseEvent) => void
Mouse enter handler.
(e: MouseEvent) => void
Mouse leave handler.
(e: FocusEvent) => void
Focus handler.
(e: FocusEvent) => void
Blur handler.
(e: TouchEvent) => void
Touch start handler.
useLinkProps Hook
Generate props for custom link components.Usage with External Links
createLink Function
Create reusable custom link components.Custom Component
With Default Props
useNavigate Hook
Get a type-safe navigate function.Navigate Options
Navigate from Route
Navigate Component
Declarative navigation component.Props
string
required
Destination path.
Record<string, any>
Path parameters.
Record<string, any>
Search parameters.
string
URL hash.
boolean
Replace current history entry.Default:
false