/** * External dependencies */ import PropTypes from 'prop-types'; import classnames from 'classnames'; import { useState } from '@wordpress/element'; /** * Internal dependencies */ import Label from '../label'; import './style.scss'; const TextInput = ( { className, id, ariaLabel, label, screenReaderLabel, disabled, help, value, onChange, } ) => { const [ isActive, setIsActive ] = useState( false ); const onChangeValue = ( event ) => onChange( event.target.value ); return (
); }; TextInput.propTypes = { id: PropTypes.string, value: PropTypes.string, onChangeValue: PropTypes.func, ariaLabel: PropTypes.string, label: PropTypes.string, screenReaderLabel: PropTypes.string, disabled: PropTypes.bool, help: PropTypes.string, }; export default TextInput;