diff --git a/src/components/Byline/Byline.mdx b/src/components/Byline/Byline.mdx index 31352eb9..dbff6ad5 100644 --- a/src/components/Byline/Byline.mdx +++ b/src/components/Byline/Byline.mdx @@ -25,6 +25,37 @@ The `Byline` component adds a byline, published and updated datelines to your pa /> ``` +## Using with ArchieML docs + +With the Graphics Kit, you'll likely get your text value from an ArchieML doc... + +```yaml +# ArchieML doc +[authors] +* Dea Bankova +* Prasanta Kumar Dutta +* Anurag Rao +* Mariano Zafra +[] +publishTime: 2021-09-12T00:00:00.000Z +updateTime: 2021-09-12T12:57:00.000Z +``` + +... which you'll pass to the `Byline` component. + +```svelte + + + +``` + ## Cutomisation diff --git a/src/components/Byline/Byline.svelte b/src/components/Byline/Byline.svelte index 2c534925..c904e27f 100644 --- a/src/components/Byline/Byline.svelte +++ b/src/components/Byline/Byline.svelte @@ -42,16 +42,16 @@ /** * Optional snippet for a custom byline. */ - byline?: Snippet | null; + byline?: Snippet; /** * Optional snippet for a custom published dateline. */ // Specify that this prop should have the type of a Svelte snippet, i.e. basic html - published?: Snippet | null; + published?: Snippet; /** * Optional snippet for a custom updated dateline. */ - updated?: Snippet | null; + updated?: Snippet; } let {