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

Function Time

packages/dev/s2-docs/src/PostList.tsx:123–129  ·  view source on GitHub ↗
({date}: {date: string})

Source from the content-addressed store, hash-verified

121}
122
123export function Time({date}: {date: string}) {
124 return (
125 <time itemProp="datePublished" dateTime={date} className={style({font: 'detail'})}>
126 {new Date(date).toLocaleDateString('en-US', {year: 'numeric', month: 'long', day: 'numeric'})}
127 </time>
128 );
129}
130
131function RSSIcon() {
132 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected