Configurable Higher order title with optional subtitle component. The returned component function takes two args: title, subtitle.
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..."]
Generated using TypeDoc
Configurable Higher order title with optional subtitle component. The returned component function takes two args: title, subtitle.
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..."]