<fwc-chip>
Installation
npm i @fortit/fwc-chip
Example usage
Standard
<script type="module">
import '@fortit/fwc-chip';
</script>
<fwc-chip
icon="lightbulb"
text="Strategisches Ziel"
@remove="${() => this.remove()}"
action
></fwc-chip>
API
Slots
None
Properties/Attributes
Name | Type | Default | Description |
---|---|---|---|
icon |
string |
'' |
Icon to display left |
text |
string |
'' |
Text to display |
action |
boolean |
false |
Display delete icon on the right |
Methods
None
Events
Event Name | Target | Detail | Description |
---|---|---|---|
remove |
fwc-chip |
none | Fired icon button click. |