MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Time

Function Time

packages/dev/s2-docs/src/typography.tsx:330–336  ·  view source on GitHub ↗
({date}: {date: string})

Source from the content-addressed store, hash-verified

328}
329
330export function Time({date}: {date: string}) {
331 return (
332 <time itemProp="datePublished" dateTime={date} className={style({font: 'detail'})}>
333 {new Date(date).toLocaleDateString('en-US', {year: 'numeric', month: 'long', day: 'numeric'})}
334 </time>
335 );
336}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected