@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
16 lines • 685 B
TypeScript
/**
* Specifies the granularity at which a date will be displayed.
**/
export type DateGranularity = 'day' | 'month';
/**
* The formats that allow for an editable value:
* * `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).
* * `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).
**/
export type EditableDateFormat = 'iso' | 'slashed';
/**
* The format that does note allow for an editable value
* * `long-localized`: a more human-readable, localized format, e.g.: January 30, 2024 (or January, 2024).
**/
export type StaticDateFormat = 'long-localized';
export type DateFormat = EditableDateFormat | StaticDateFormat;