FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/ant-design / Title

Function: Title()

Title(props): Element | null

Update document.title and optionally render the title inline.

The component returns null by default and is often used only for its side effect.

Parameters

props

TitleProps

Title props controlling document title updates and optional inline rendering.

Returns

Element | null

Example

import { Title } from '@faasjs/ant-design'

export function DetailPage() {
  return (
    <>
      <Title title={['Orders', 'Detail']} h1 />
      <div>...</div>
    </>
  )
}