---
url: >-
  https://lit-ui-router.dev/api/reference/controllers/SrefStatusControllerOptions.md
---
[lit-ui-router](../index.md) / SrefStatusControllerOptions

# Interface: SrefStatusControllerOptions

Defined in: [packages/lit-ui-router/src/sref-status-controller.ts:30](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-status-controller.ts#L30)

Options for [SrefStatusController](SrefStatusController.md): which state to watch, plus the
router to watch it in.

## Extends

* [`SrefTargetParams`](../types/SrefTargetParams.md)

## Properties

| Property | Type | Description | Inherited from | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `options?` | [`TransitionOptions`](https://ui-router.github.io/core/docs/latest/interfaces/_transition_interface_.transitionoptions.html) | Transition options; `relative` defaults to the enclosing view's state | [`SrefTargetParams`](../types/SrefTargetParams.md).[`options`](../types/SrefTargetParams.md#options) | [packages/lit-ui-router/src/sref-active.ts:45](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-active.ts#L45) |
|  `params?` | [`RawParams`](https://ui-router.github.io/core/docs/latest/interfaces/_params_interface_.rawparams.html) | State parameters to match | [`SrefTargetParams`](../types/SrefTargetParams.md).[`params`](../types/SrefTargetParams.md#params) | [packages/lit-ui-router/src/sref-active.ts:43](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-active.ts#L43) |
|  `router?` | [`UIRouter`](https://ui-router.github.io/core/docs/latest/classes/_router_.uirouter.html) | The [UIRouter](https://ui-router.github.io/core/docs/latest/classes/_router_.uirouter.html) instance to observe. When omitted, the controller discovers the router from an ancestor \<ui-router> (or \<ui-view>) when the host connects, and follows the placeholder router a \<ui-router> mints for itself to the one that replaces it. Passing it explicitly also moves the first status computation into the constructor, so the status is there for the very first render and needs no DOM — the hand-off an element-less environment has no other way to make. | - | [packages/lit-ui-router/src/sref-status-controller.ts:44](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-status-controller.ts#L44) |
|  `state?` | `string` | The state name to check for active status | [`SrefTargetParams`](../types/SrefTargetParams.md).[`state`](../types/SrefTargetParams.md#state) | [packages/lit-ui-router/src/sref-active.ts:41](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-active.ts#L41) |
