Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "title"

Index

Interfaces

Functions

Functions

Const title

  • title(_opts?: Partial<TitleOpts>): (Anonymous function)
  • Configurable Higher order title with optional subtitle component. The returned component function takes two args: title, subtitle.

    example
    const h1 = title();
    const h2 = title({ element: "h2", attribs: { class: "blue" }});
    
    [h1, "Hello world", "Once upon a time..."]
    
    [h2, "Chapter 1", "Once upon a time..."]

    Parameters

    Returns (Anonymous function)

Generated using TypeDoc