d2d8d78be1
This commit moves all of the packages in `plugins/woocommerce-admin/packages` to their new home in `packages/js`. |
||
---|---|---|
.. | ||
stories | ||
README.md | ||
index.js | ||
style.scss |
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 |