Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { uid } from '@instructure/uid'
import { deprecated, omitProps, pickProps } from '@instructure/ui-react-utils'
import { isActiveElement } from '@instructure/ui-dom-utils'
import { themeable } from '@instructure/ui-themeable'
import { testable } from '@instructure/ui-testable'
import styles from './styles.css'
import theme from './theme'
/**
---
category: components/deprecated
id: DeprecatedTextInput
---
**/
@deprecated('7.0.0', null, deprecated.changedPackageWarning(
'ui-forms',
'ui-text-input'
))
@testable()
@themeable(theme, styles)
class TextInput extends Component {
static propTypes = {
type: PropTypes.oneOf(['text', 'email', 'url', 'tel', 'search', 'password']),
label: PropTypes.node.isRequired,
id: PropTypes.string,
/**
* object with shape: `{
* text: PropTypes.string,
* type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
* }`
*/