Skip to content

Commit

Permalink
[docs] Add label to each demo (#4667)
Browse files Browse the repository at this point in the history
  • Loading branch information
m4theushw authored Apr 27, 2022
1 parent 3b9b6d7 commit 0d8a55d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,23 @@ export default function ResponsiveDateTimePickers() {
<LocalizationProvider dateAdapter={AdapterDateFns}>
<Stack spacing={3}>
<MobileDateTimePicker
label="For mobile"
value={value}
onChange={(newValue) => {
setValue(newValue);
}}
renderInput={(params) => <TextField {...params} />}
/>
<DesktopDateTimePicker
label="For desktop"
value={value}
onChange={(newValue) => {
setValue(newValue);
}}
renderInput={(params) => <TextField {...params} />}
/>
<DateTimePicker
label="Responsive"
renderInput={(params) => <TextField {...params} />}
value={value}
onChange={(newValue) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,23 @@ export default function ResponsiveDateTimePickers() {
<LocalizationProvider dateAdapter={AdapterDateFns}>
<Stack spacing={3}>
<MobileDateTimePicker
label="For mobile"
value={value}
onChange={(newValue) => {
setValue(newValue);
}}
renderInput={(params) => <TextField {...params} />}
/>
<DesktopDateTimePicker
label="For desktop"
value={value}
onChange={(newValue) => {
setValue(newValue);
}}
renderInput={(params) => <TextField {...params} />}
/>
<DateTimePicker
label="Responsive"
renderInput={(params) => <TextField {...params} />}
value={value}
onChange={(newValue) => {
Expand Down

0 comments on commit 0d8a55d

Please sign in to comment.