[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow-ui](../../README) / [index](../README) / isActive

# Function: isActive()

> **isActive**(`href`, `current`): `boolean`

Defined in: [flow-ui/src/components/Sidebar.tsx:89](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Sidebar.tsx#L89)

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`
