Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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