Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 392 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 392 Bytes

Timestamp

The timestamp component presents a date in the past with humanized phrasing in English: "10 minutes/hours/days/months ago".

Getting started

yarn add @hig/timestamp

Import the component and CSS

import Timestamp from '@hig/timestamp';
import '@hig/timestamp/build/index.css';

Basic usage

<Timestamp timestamp="2018-05-05T12:00:00.000Z" />