[]previous and next page

TitleProps

Props of Title.

Props of Title.

Import#

ts
import type { TitleProps } from "@shadow-js/web";

Signature#

ts
interface TitleProps {
  /**
   * The title text: a string, a number, an array of those, or an accessor returning them. `null`,
   * `undefined` and `false` count as empty text; anything else throws a TypeError.
   * @default undefined (the title is the empty string)
   */
  readonly children?: unknown;
}

Members#

Name Type Description
children? readonly children?: unknown The title text: a string, a number, an array of those, or an accessor returning them. null, undefined and false count as empty text; anything else throws a TypeError.