跳到主要内容

Time

Components

The Table component family provides the following components:

DateAndTime

A component to render date + time

You can import the DateAndTime component from the time component family in the @openclothes/react package:

Javascript
import { DateAndTime } from "@openclothes/react/components/Time"

TimeAgo

A component to render the time delta between now and a moment in the past.

You can import the TimeAgo component from the time component family in the @openclothes/react package:

Javascript
import { TimeAgo } from "@openclothes/react/components/Time"

TimeAgoBrief

A component to render the time delta between now and a moment in the past.

You can import the TimeAgoBrief component from the time component family in the @openclothes/react package:

Javascript
import { TimeAgoBrief } from "@openclothes/react/components/Time"

TimeToGo

A component to render the time delta between now and a moment in the future.

You can import the TimeToGo component from the time component family in the @openclothes/react package:

Javascript
import { TimeToGo } from "@openclothes/react/components/Time"

TimeToGoBrief

A component to render the time delta between now and a moment in the future.

You can import the TimeToGoBrief component from the time component family in the @openclothes/react package:

Javascript
import { TimeToGoBrief } from "@openclothes/react/components/Time"