diff --git a/src/TextInput.tsx b/src/TextInput.tsx index 2fc6ab1f9d1..816e8784485 100644 --- a/src/TextInput.tsx +++ b/src/TextInput.tsx @@ -121,7 +121,11 @@ const Wrapper = styled.span` ${sx}; ` -type TextInputInternalProps = {icon?: React.ComponentType<{className?: string}>} & ComponentProps & +type TextInputInternalProps = { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + as?: any // This is a band-aid fix until we have better type support for the `as` prop + icon?: React.ComponentType<{className?: string}> +} & ComponentProps & ComponentProps // using forwardRef is important so that other components (ex. SelectMenu) can autofocus the input