Skip to main content

UsePageMetadata

Provides functions for setting the current page title and breadcrumb.

Example

Ts
import { usePageMetadata } from '@vendure/admin-ui/react';import { useEffect } from 'react';export const MyComponent = () => {    const { setTitle, setBreadcrumb } = usePageMetadata();    useEffect(() => {        setTitle('My Page');        setBreadcrumb([            { link: ['./parent'], label: 'Parent Page' },            { link: ['./'], label: 'This Page' },        ]);    }, []);    // ...    return <div>...</div>;}
Signature
function usePageMetadata(): void
Was this chapter helpful?
Report Issue
Edited Feb 2, 2026·Edit this page