#How can i extends the props of the FloatingLabelInput with TextInputsProps?

3 messages · Page 1 of 1 (latest)

grizzled holly
#

when exporting the custom component from mantine ui FloatingLabelInput it works well but i have to define every prop i want to pass

  label,
  required,
  onChange,
  value,
}: Props) {````

how can i pass all the TextInputProps automatically and configure them?
spiral pasture
grizzled holly
#

i mean, beside extending the interface, i am trying to know if its possible to auto-asign the props to the inputText, like {...props} because i got the interface working with the custom Component but adding the props do nothing if i dont add them on the textInput obv

onClick={()=>{"click"}}` //do nothing if i dont configure it manually as a prop of the TextInput