Skip to content
CtrlK

useIsActivePath

On this page

Whether to names the current page, or with end: false one of its ancestors.

import { useIsActivePath } from "ardo/runtime"

useIsActivePath(to: string, end?: boolean): boolean

Parameters

NameTypeRequired
tostringYes
endbooleanNo

Returns

boolean