From 1100ad79b3533fc2b1ce36b670b4066a565d252e Mon Sep 17 00:00:00 2001 From: Sudhanshu Date: Sun, 13 Aug 2023 22:24:42 +0530 Subject: [PATCH] Add comment on doc to not use customInput as render prop. --- documentation/v5/docs/props.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/v5/docs/props.md b/documentation/v5/docs/props.md index 4b769934..8cdbd9ae 100644 --- a/documentation/v5/docs/props.md +++ b/documentation/v5/docs/props.md @@ -18,6 +18,8 @@ import { TextField } from '@mui/material'; ; ``` +**Note**: customInput expects reference of component (not a render prop), if you pass an inline component like this ` } />`, it will not work. +
Demo