A component that displays an author's name, title, and optional avatar.
The Byline component is designed to display an author's full name, title, and optional avatar.
```
npm install @bbc/psammead-byline --save
| Argument | Type | Required | Default | Example |
| ----------------- | --------- | -------- | --------- | ------------------------------ |
| service | string | Yes | N/A | 'news' |null
| avatar | object | No | | _See below._ |'John Smith'
| name | string | Yes | N/A | |'Art editor'
| title | string | Yes | N/A | |
| Argument | Type | Required | Default | Example |
| ----------------- | --------- | -------- | --------- | -------------------------------- |
| src | string | Yes | N/A | 'http://www.bbc.co.uk/img.jpg' |null
| alt | string | No | | 'A person wearing glasses.' |
`jsx
import Byline from "@bbc/psammead-byline"
avatar={{ src: 'http://www.bbc.co.uk/john-smith.jpg' }}
name="John Smith"
title="Art editor"
/>
`
This component should be used when crediting the author of a piece of content, such as an article.
N/A.
By default the avatar img is rendered with an empty alt` attribute as it is expected to be of the person, which the adjacent name describes.
There are no known future changes to this component.
Psammead is completely open source. We are grateful for any contributions, whether they be new components, bug fixes or general improvements. Please see our primary contributing guide which can be found at the root of the Psammead repository.
We welcome feedback and help on this work. By participating in this project, you agree to abide by the code of conduct. Please take a moment to read it.
Psammead is Apache 2.0 licensed.