Add TextControlWithAffixes to devdocs listing.
This commit is contained in:
parent
aab376a731
commit
4bfe767ad7
|
@ -23,5 +23,6 @@
|
|||
{ "component": "Summary", "render": "MySummaryList" },
|
||||
{ "component": "Table" },
|
||||
{ "component": "Tag" },
|
||||
{ "component": "TextControlWithAffixes" },
|
||||
{ "component": "ViewMoreList" }
|
||||
]
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
```
|
Loading…
Reference in New Issue