Components

DateFirstPublished

<DateFirstPublished />

Constructor

# <DateFirstPublished />

DateFirstPublished Component - uses library "date-fns-tz" to format the story publish date. Uses the "DateTime" atomic component internally

<DateFirstPublished format="pp 'on' do MM yyyy" prepend="Date of publication: " />
Parameters:
Name Type Description
props Object

Object containing parameters passed to the render prop

prepend String | Component

Optional. String or Component (logo) that is prepended

format String

Optional. String that is used to format date. The default is "do MMM, yyyy 'at' p". For formatting info, check the date-fns Docs

View Source molecules/date/published/date-first-published.tsx, line 22