Skip to content

Commit

Permalink
[docs] Add the DateTimeRangePicker to the "Commonly used components…
Browse files Browse the repository at this point in the history
…" demo (#13775)
  • Loading branch information
flaviendelangle committed Jul 9, 2024
1 parent 22f8f84 commit 0f7c7c5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/data/date-pickers/overview/CommonlyUsedComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { DatePicker } from '@mui/x-date-pickers/DatePicker';
import { TimePicker } from '@mui/x-date-pickers/TimePicker';
import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';
import { DateTimeRangePicker } from '@mui/x-date-pickers-pro/DateTimeRangePicker';

const ProSpan = styled('span')({
display: 'inline-block',
Expand Down Expand Up @@ -57,6 +58,7 @@ export default function CommonlyUsedComponents() {
'TimePicker',
'DateTimePicker',
'DateRangePicker',
'DateTimeRangePicker',
]}
>
<DemoItem label={<Label componentName="DatePicker" valueType="date" />}>
Expand Down Expand Up @@ -87,6 +89,23 @@ export default function CommonlyUsedComponents() {
}}
/>
</DemoItem>
<DemoItem
label={
<Label
componentName="DateTimeRangePicker"
valueType="date time range"
isProOnly
/>
}
component="DateTimeRangePicker"
>
<DateTimeRangePicker
localeText={{
start: '',
end: '',
}}
/>
</DemoItem>
</DemoContainer>
</LocalizationProvider>
);
Expand Down
19 changes: 19 additions & 0 deletions docs/data/date-pickers/overview/CommonlyUsedComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { DatePicker } from '@mui/x-date-pickers/DatePicker';
import { TimePicker } from '@mui/x-date-pickers/TimePicker';
import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';
import { DateTimeRangePicker } from '@mui/x-date-pickers-pro/DateTimeRangePicker';

const ProSpan = styled('span')({
display: 'inline-block',
Expand Down Expand Up @@ -65,6 +66,7 @@ export default function CommonlyUsedComponents() {
'TimePicker',
'DateTimePicker',
'DateRangePicker',
'DateTimeRangePicker',
]}
>
<DemoItem label={<Label componentName="DatePicker" valueType="date" />}>
Expand Down Expand Up @@ -95,6 +97,23 @@ export default function CommonlyUsedComponents() {
}}
/>
</DemoItem>
<DemoItem
label={
<Label
componentName="DateTimeRangePicker"
valueType="date time range"
isProOnly
/>
}
component="DateTimeRangePicker"
>
<DateTimeRangePicker
localeText={{
start: '',
end: '',
}}
/>
</DemoItem>
</DemoContainer>
</LocalizationProvider>
);
Expand Down

0 comments on commit 0f7c7c5

Please sign in to comment.