📝(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:
committed by
aleb_the_flash
parent
e1489b7fe0
commit
5c61413949
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user