🚀A modern, comprehensive, flexible design system and React UI library. 🎨 Provide more than 3000+ Design Tokens, easy to build your design system. Make Semi Design to Any Design. 🧑🏻💻 Design to Code in one click
value: is the current tag value (exists in the current API)
index: is the index of current tag (exists in the current API)
onRemove: the function to remove the tag item (does not exist in the current API)
Feature Description 功能描述
I know that this component can be controlled, but I think this feature can be interesting to add the functionality to remove tags in a simpler and compact way.
Which Component Need Enhancement 期望新增功能的组件
What does the proposed API look like 期望支持的API
Where:
value: is the current tag value (exists in the current API)
index: is the index of current tag (exists in the current API)
onRemove: the function to remove the tag item (does not exist in the current API)
Feature Description 功能描述
I know that this component can be controlled, but I think this feature can be interesting to add the functionality to remove tags in a simpler and compact way.
Usage example:
PROS:
Less state bloat of the component that uses the TagInput.
Have all the basic functionalities to handle the Tags, without adding complexity to the existing API.
CONS:
Additional information 补充说明
I have not spent much time thinking about the naming of the
onRemove
function, obviously it can be changed to a more convenient one.M