AuthorByline

Status: Stable

Latest released: 2019

Current version: v1.2.3

Storybook
GitHub

Standardizes the authors that serve as the byline for article posts. One example usage is within @nerdwallet/react-content-page-header.

Variants

Default

Pat Finance, Sherry SavingsOctober 24, 2018

Without a date

Pat Finance, Sherry Savings, Sam Frugal, Tim Chen, Wanda Wealth

Development

import AuthorByline from '@nerdwallet/react-author-byline';
<AuthorByline />;

Props

<AuthorByline>

authors

Array<Object>

Required

1 or more authors that will be rendered (as a Type or optional Link) in the byline.

Array<{
name: string Required
url: string
}>

authoringDate

string

Accepts an ISO8601 date string. Will be formatted to:

Month date, year - eg. January 27, 2020

Default

null