Skip to content

Commit

Permalink
[docs] Use PickersTextField in the customization playground (#15288)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy authored Nov 5, 2024
1 parent 565de78 commit 61e16ea
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/data/date-pickers/date-picker/examplesConfig.styling.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,24 +265,25 @@ export const datePickerExamples: PickersSubcomponentType = {
},
slots: ['root', 'monthButton'],
},
TextField: {
PickersTextField: {
examples: {
customTheme: {
type: 'info',
comments:
'This approach would change the styles of all the TextField components in the application. Consider using a nested theme with this style wrapping your local picker component to isolate this override',
'This approach would change the styles of all the PickersTextField components in the application. Consider using a nested theme with this style wrapping your local picker component to isolate this override',
},
sxProp: {
type: 'success',
parentSlot: 'textField',
current: true,
comments: 'You can apply the sx prop to the `TextField` via slotProps',
comments:
'You can apply the sx prop to the `PickersTextField` via slotProps',
},
styledComponents: {
type: 'success',
parentSlot: 'textField',
parentComponent: 'TextField',
comments: 'You can style the `TextField` component directly',
parentComponent: 'PickersTextField',
comments: 'You can style the `PickersTextField` component directly',
current: true,
},
},
Expand Down

0 comments on commit 61e16ea

Please sign in to comment.