Posts

Showing posts with the label semantic-ui-react

How does one use the semantic-ui-react Label OnRemove handler /removeIcon property?

Image
How does one use the semantic-ui-react Label OnRemove handler /removeIcon property? I noticed that the semantic-ui-react Label has an OnRemove handler as well as a removeIcon property. I am wondering how this is supposed to be used with other controls, as it does not seem to be well documented. For example, how would I make use of this with an Input or Form.Input? 1 Answer 1 Here is an usage example: onRemove = (event, data) => { console.log("onRemove event"); } render() { return ( <Label color='teal' content='Label content' removeIcon='delete' onRemove={this.onRemove} /> ); } By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these polici...