@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
12 lines (11 loc) • 630 B
TypeScript
import { DateTimeFormatterOptions } from "../../hooks/useDateTimeFormatter.js";
export type FormatDateShow = Exclude<DateTimeFormatterOptions["show"], undefined>;
export type FormatDateProps = DateTimeFormatterOptions & {
/** Always show full time and date in tooltip regardless of `show` option */
fullTooltip?: boolean;
/** Bool to not show tooltip */
noTooltip?: boolean;
};
/** Format date and/or time based on current Bifrost locale */
declare const FormatDate: ({ date, show, options, locale, fullTooltip, noTooltip, }: FormatDateProps) => import("react/jsx-runtime").JSX.Element;
export default FormatDate;