@tiller-ds/date
Version:
Date module of Tiller Design System
10 lines (9 loc) • 366 B
TypeScript
/// <reference types="react" />
export declare type DateProps = {
/**
* Data handed to the component in a valid date format.
* Other props come from Intl.DateTimeFormatOptions (https://bit.ly/3urm8s5)
*/
children: Date;
} & Intl.DateTimeFormatOptions;
export default function DateTime({ children, ...props }: DateProps): JSX.Element;