Documentation / @zerotal/flow-ui / index / isActive
Function: isActive()
isActive(
href,current):boolean
Defined in: flow-ui/src/components/Sidebar.tsx:89
Whether an item is the one the current path is inside.
Prefix matching, but only on a path boundary — otherwise /admin/order would
light up for /admin/orders, which is a different resource entirely.
Parameters
href
string | undefined
current
string | undefined
Returns
boolean