Skip to content

Commit

Permalink
[pickers] Update description or reverseYears prop based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmoon committed Sep 9, 2024
1 parent be4d19b commit 19382b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/data/date-pickers/date-calendar/date-calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ If you only need the `year` view or the `month` view, you can use the `YearCalen

### Reverse years

The `reverseYears` prop can be set to show the years in descending order starting from the maximum value.
The `reverseYears` prop can be set to show the years in reverse chronological order.

{{"demo": "ReverseYearCalendar.js", "defaultCodeOpen": false}}

Expand Down
2 changes: 1 addition & 1 deletion docs/data/date-pickers/date-picker/date-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ If the view defined in `openTo` is not the first view, then the views before wil

## Reverse years

The `reverseYears` prop can be set to show the years in descending order starting from the maximum value.
The `reverseYears` prop can be set to show the years in reverse chronological order.

{{"demo": "DatePickerReverseYears.js"}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export interface YearCalendarSlotProps {

export interface ExportedYearCalendarProps {
/**
* Display years in descending order starting from the maximum value.
* If `false`, display the years in their default order (chronological)
* If `true`, reverse the order of displayed years
* @default false
*/
reverseYears?: boolean;
/**
Expand Down

0 comments on commit 19382b3

Please sign in to comment.