# FocusChange

Source: /tuil/docs/reference/packages/focus/api/focus-change
Locale: en

interface exported by @mwillbanks/tuil-focus.



{/* Generated by tooling/docs/generate-reference.ts. */}

## interface [#interface]

Public interface exported by `@mwillbanks/tuil-focus`.

```ts
export interface FocusChange {
  readonly previousId?: string;
  readonly currentId?: string;
  readonly reason: string;
}
```

## Members [#members]

| Member       | Type                  | Required | Description                                                      | Related types |
| ------------ | --------------------- | -------- | ---------------------------------------------------------------- | ------------- |
| `previousId` | `string \| undefined` | No       | The `previousId` member uses the `string \| undefined` contract. | —             |
| `currentId`  | `string \| undefined` | No       | The `currentId` member uses the `string \| undefined` contract.  | —             |
| `reason`     | `string`              | Yes      | The `reason` member uses the `string` contract.                  | —             |

## Parameters [#parameters]

This declaration has no public members.

## Returns [#returns]

This declaration does not return a value.

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

No package-local related types.

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/focus/src/index.ts)

## Package [#package]

[@mwillbanks/tuil-focus](/tuil/docs/reference/packages/focus)
