← Back
Header
This component makes it easy to add a title, subtitle, and byline to your article:
Input:
[Header
title:"The Title of my Article"
subtitle:"The subtitle of my article"
author:"Matthew Conlen"
authorLink:"https://github.com/mathisonian/"
/]
Output:
Props
- title
string
- Example:
"Article Title"
- Example:
- subtitle
string
- Example:
"Article subtitle."
- Example:
- author
string
- authorLink
string
- authors
array
An array of authors. Each element of the array can be an object or a string.
- Example:
`[{name: 'Jane Doe', link: 'https://website.com'}]`
- Example:
- date
string
The publication date.
- Example:
"December 25, 2018"
- Example:
- background
string
The background of the header. Can pass a color or a url().
- Example:
"#999"
- Example:
- byLineTemplate
object
Optional template to use in by line.
- Example:
`{ prefix: 'Made by', joint: ' ', suffix: '&' }`
- Example:
- color
string
The text color of the header.
- Example:
"#000"
- Example: