---
url: https://lit-ui-router.dev/api/reference/directives/SrefAriaCurrentDirective.md
---
[lit-ui-router](../index.md) / SrefAriaCurrentDirective

# Class: SrefAriaCurrentDirective

Defined in: [packages/lit-ui-router/src/sref-active.ts:526](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-active.ts#L526)

The attribute-part sibling of [UiSrefActiveDirective](UiSrefActiveDirective.md)'s
`aria-current` handling.

## See

[srefAriaCurrent](srefAriaCurrent.md) for the public API

## Extends

* [`SrefStatusDirective`](SrefStatusDirective.md)<[`SrefAriaCurrentParams`](../types/SrefAriaCurrentParams.md),
  | [`AriaCurrentValue`](../types/AriaCurrentValue.md)
  | *typeof* `nothing`
  | *typeof* `noChange`>

## Properties

| Property | Modifier | Type | Description | Inherited from | Defined in |
| ------ | ------ | ------ | ------ | ------ | ------ |
|  `directiveName` | `protected readonly` | `string` | the public function's name, for errors and warnings | [`SrefStatusDirective`](SrefStatusDirective.md).[`directiveName`](SrefStatusDirective.md#directivename) | [packages/lit-ui-router/src/sref-active.ts:101](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-active.ts#L101) |
|  `params` | `public` | | [`SrefAriaCurrentParams`](../types/SrefAriaCurrentParams.md) | `undefined` | the last params `update()` saw | [`SrefStatusDirective`](SrefStatusDirective.md).[`params`](SrefStatusDirective.md#params-1) | [packages/lit-ui-router/src/sref-active.ts:75](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-active.ts#L75) |
|  `status` | `public` | [`SrefStatus`](../types/SrefStatus.md) | `undefined` | merged status of every target, or `undefined` before there is one | [`SrefStatusDirective`](SrefStatusDirective.md).[`status`](SrefStatusDirective.md#status) | [packages/lit-ui-router/src/sref-active.ts:77](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-active.ts#L77) |

## Methods

### render()

```ts
render(params): 
  | typeof nothing
  | typeof noChange
  | AriaCurrentValue;
```

Defined in: [packages/lit-ui-router/src/sref-active.ts:560](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router/src/sref-active.ts#L560)

The token for the current status, `nothing` to remove the attribute, or
`noChange` before a status exists.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `params` | [`SrefAriaCurrentParams`](../types/SrefAriaCurrentParams.md) |

#### Returns

| *typeof* `nothing`
| *typeof* `noChange`
| [`AriaCurrentValue`](../types/AriaCurrentValue.md)

#### Overrides

[`SrefStatusDirective`](SrefStatusDirective.md).[`render`](SrefStatusDirective.md#render)
