ant-design Add prefix/suffix properties for TextArea like Input field has

klsxnrf1  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(34)

What problem does this feature solve?

Possibility to add icons into text area, positioned in different corners.
It should work the same way how it works for Input component.

In my specific case I use it to display customized Spin component, during data loading.
This functionality exists in Input, DatePicker, Select. But for some reason it dose not exists in TextArea.

What does the proposed API look like?

<TextArea prefix={} prefixPosition={"top | bottom"} /> <TextArea suffix={} suffixPosition={"top | bottom"} />

相关问题