---
url: >-
  https://lit-ui-router.dev/api/ui-router-registry/index/type-aliases/RelativeRef.md
---
[ui-router-registry](../../index.md) / [ui-router-registry](../index.md) / RelativeRef

# Type Alias: RelativeRef

```ts
type RelativeRef = IsRegistered extends true ? "." | Up | `.${RelativeTail}` | `${Up}.${RelativeTail}` : `.${string}` | `^${string}`;
```

Defined in: [registry.ts:77](https://github.com/simshanith/lit-ui-router/blob/251586fb2ad2b81ffe14422bb417dff339b69e07/packages/ui-router-registry/src/registry.ts#L77)

A relative state reference, resolved against `options.relative` or the
uiSref's context. Its base isn't known statically, so once an app registers
only its tail is checked: it must end some registered name. A bare `.` is the
base state itself. Params stay loose.
