@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
19 lines • 704 B
TypeScript
import { HTMLAttributes } from 'react';
export declare type DatetimeProps = HTMLAttributes<HTMLTimeElement> & {
/**
* The date to format and display.
*/
date: string;
/**
* Set the locale to use to format the date.
*/
locale?: string | string[];
/**
* Customize the date format by passing options from Intl.DateTimeFormat
*
* Read more: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
*/
options?: Intl.DateTimeFormatOptions;
};
export declare const Datetime: ({ date, locale, options, ...otherProps }: DatetimeProps) => JSX.Element;
//# sourceMappingURL=datetime.d.ts.map