woocommerce/packages/js/components/src/text-control
Christopher Allford d2d8d78be1 Moved WCA Packages
This commit moves all of the packages in
`plugins/woocommerce-admin/packages` to their
new home in `packages/js`.
2022-03-18 14:25:26 -07:00
..
stories Moved WCA Packages 2022-03-18 14:25:26 -07:00
README.md Moved WCA Packages 2022-03-18 14:25:26 -07:00
index.js Moved WCA Packages 2022-03-18 14:25:26 -07:00
style.scss Moved WCA Packages 2022-03-18 14:25:26 -07:00

README.md

TextControl

An input field use for text inputs in forms.

Usage

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

Props

Name Type Default Description
className String null Additional CSS classes
disabled Boolean null Disables the field
label String null Input label used as a placeholder
onClick Function null On click handler called when the component is clicked, passed the click event
value String null The value of the input field