UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

15 lines (14 loc) 553 B
export type FormatDurationProps = { /** Start Date object (required) */ start: Date; /** End Date object (required, should be a point in time _after_ `start`) */ end: Date; }; /** * Display human-readable duration (e.g "3 days"/"5 hours") based on a `start` * and `end` Date object, with a tooltip displaying full DateTime info * including time zone. * * @see https://bifrost.intility.com/react/formatDuration */ export default function FormatDuration({ start, end }: FormatDurationProps): import("react/jsx-runtime").JSX.Element;