

Custom hook that sets the document title.

## Usage [#usage]

```tsx
import { useDocumentTitle } from "@tilt-legal/cubitt-components/utilities/hooks";

useDocumentTitle('My new title');
```

## API [#api]

### Signature [#signature]

```ts
declare function useDocumentTitle(title: string, options?: UseDocumentTitleOptions): void;
```

### Parameters [#parameters]

| Parameter   | Type                       | Description       | Default |
| ----------- | -------------------------- | ----------------- | ------- |
| `title`     | `string`                   | The title to set. | -       |
| `[options]` | `?UseDocumentTitleOptions` | The options.      | -       |

### Return Value [#return-value]

| Value    | Type   | Description                 |
| -------- | ------ | --------------------------- |
| `return` | `void` | Value returned by the hook. |
