From 61e16eadf31d24b2d03a843319439029f0ebed9f Mon Sep 17 00:00:00 2001 From: Lukas Tyla Date: Tue, 5 Nov 2024 23:00:13 +0200 Subject: [PATCH] [docs] Use `PickersTextField` in the customization playground (#15288) --- .../date-picker/examplesConfig.styling.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/data/date-pickers/date-picker/examplesConfig.styling.tsx b/docs/data/date-pickers/date-picker/examplesConfig.styling.tsx index 11158f2a9c50..cc0a7bbb078f 100644 --- a/docs/data/date-pickers/date-picker/examplesConfig.styling.tsx +++ b/docs/data/date-pickers/date-picker/examplesConfig.styling.tsx @@ -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, }, },