woocommerce/plugins/woocommerce-admin/packages/components/src/text-control
Sam Seay fc030fb007 Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271)
Fixes woocommerce/woocommerce-admin#5234
2020-10-15 14:55:55 +13:00
..
stories Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271) 2020-10-15 14:55:55 +13:00
README.md Onboarding: Replace TextControl component (https://github.com/woocommerce/woocommerce-admin/pull/3020) 2019-10-10 07:00:33 +08:00
index.js Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00
style.scss Update @wordpress/base-styles and replace deprecated variables (https://github.com/woocommerce/woocommerce-admin/pull/4759) 2020-07-17 12:11:42 +12: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