Am using React and material UI to display an outlined input. I can make it display that there has been an error with the error
prop set to true
but there is an issue when i try to add helperText
and my message as a prop:
<OutlinedInput
margin="dense"
value=""
placeholder="my placeholder"
error
helperText="There has been an error" // Property 'helperText' does not exist on type 'IntrinsicAttributes & OutlinedInputProps'
/>
Is there any way to use both an OutlinedInput
and display an error helper message?