useDocumentTitle

Custom hook that sets the document title.

Custom hook that sets the document title.

Usage

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

useDocumentTitle('My new title');

API

Signature

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

Parameters

ParameterTypeDescriptionDefault
titlestringThe title to set.-
[options]?UseDocumentTitleOptionsThe options.-

Return Value

ValueTypeDescription
returnvoidValue returned by the hook.

On this page