Back to Woocommerce

README

packages/js/components/src/text-control/README.md

10.8.0-dev598 B
Original Source

TextControl

An input field use for text inputs in forms.

Usage

jsx
<TextControl
	label="Input label"
	value={ value }
	onChange={ value => setState( { value } ) }
/>;

Props

NameTypeDefaultDescription
classNameStringnullAdditional CSS classes
disabledBooleannullDisables the field
labelStringnullInput label used as a placeholder
onClickFunctionnullOn click handler called when the component is clicked, passed the click event
valueStringnullThe value of the input field