📝(react) illustrate international calendars of DatePicker component

Show international capabilities of the `DatePicker` component using the
`locale` props and the Cunningham provider. Dates would
be automatically displayed in the appropriate calendar system.
This commit is contained in:
Lebaud Antoine
2023-06-26 14:28:17 +02:00
committed by aleb_the_flash
parent e1489b7fe0
commit 5c61413949
3 changed files with 35 additions and 0 deletions

View File

@@ -122,6 +122,16 @@ When passing an invalid date, for example outside of the valid range, the DatePi
<Story id="components-forms-datepicker--invalid-value"/>
</Canvas>
## International calendars
When passing a locale value to the DatePicker components, dates would be automatically displayed in the appropriate calendar system.
By default, the DatePicker component uses the CunninghamProvider locale.
<Canvas sourceState="shown">
<Story id="components-forms-datepicker--custom-locale"/>
<Story id="components-forms-datepicker--cunningham-locale"/>
</Canvas>
## Props
You can see the list of props below.