← 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
arrayAn 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
stringThe publication date.
- Example:
"December 25, 2018"
- Example:
- background
stringThe background of the header. Can pass a color or a url().
- Example:
"#999"
- Example:
- byLineTemplate
objectOptional template to use in by line.
- Example:
`{ prefix: 'Made by', joint: ' ', suffix: '&' }`
- Example:
- color
stringThe text color of the header.
- Example:
"#000"
- Example: