nuxt-x-affiliate
Byline
Minimal multi-author byline ("By Jane, Tom, and Sam") with optional dates and read-time.
Byline
The XAFByline component renders a compact author byline for one or more authors with optional published / updated dates and read-time. Useful for the article header where a full <XAFAuthorBox> is overkill.
Components
<XAFByline />
<XAFByline
:authors="[
{ name: 'Jane Reviewer', href: '/author/jane' },
{ name: 'Tom Tester', href: '/author/tom' },
{ name: 'Sam Editor', href: '/author/sam' },
]"
date="2026-01-15"
updated-at="2026-02-01"
:reading-minutes="8"
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
authors | BylinePerson[] | required | Each person is { name, href?, title? }. |
date | string | — | Published ISO date. |
updatedAt | string | — | Updated ISO date. Shown only if it differs from date. |
readingMinutes | number | — | Read-time in minutes. |
prefix | string | 'By' | Label before the author list. |
Person shape
interface BylinePerson {
name: string
href?: string
title?: string
}
The author list is humanized: 1 → "Jane", 2 → "Jane and Tom", 3+ → "Jane, Tom, and Sam".
AI Context
component: XAFByline
package: "@xenterprises/nuxt-x-affiliate"
use-when: Minimal multi-author byline with dates + read time for article headers.
