Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
inputWidth,
disabled,
required,
isInvalid,
appearance,
// Rest props are spread on the FormField
...props
} = this.props
const id = `SelectField-${this.state.id}`
/**
* Split the wrapper props from the input props.
*/
const { matchedProps, remainingProps } = splitBoxProps(props)
return (
required,
isInvalid,
appearance,
placeholder,
spellCheck,
// Rest props are spread on the FormField
...props
} = this.props
const id = `TextInputField-${this.state.id}`
/**
* Split the wrapper props from the input props.
*/
const { matchedProps, remainingProps } = splitBoxProps(props)
return (
render() {
const { theme, appearance, disabled, height, ...props } = this.props
const { matchedProps, remainingProps } = splitBoxProps(props)
const { width } = matchedProps
const iconSize = theme.getIconSizeForInput(height)
return (