Add TextControlWithAffixes to devdocs listing.

This commit is contained in:
Jeff Stieler 2018-12-12 12:24:29 -07:00
parent aab376a731
commit 4bfe767ad7
2 changed files with 22 additions and 0 deletions

View File

@ -23,5 +23,6 @@
{ "component": "Summary", "render": "MySummaryList" },
{ "component": "Table" },
{ "component": "Tag" },
{ "component": "TextControlWithAffixes" },
{ "component": "ViewMoreList" }
]

View File

@ -0,0 +1,21 @@
```jsx
import { TextControlWithAffixes } from '@woocommerce/components';
const MyTextControlWithAffixes = () => (
<div>
<TextControlWithAffixes
prefix="Prefix"
placeholder="Placeholder text..."
/>
<TextControlWithAffixes
prefix="Prefix"
suffix="Suffix"
placeholder="Placeholder text..."
/>
<TextControlWithAffixes
suffix="Suffix"
placeholder="Placeholder text..."
/>
</div>
);
```