Skip to content

BaseChip

Basic Chip component

Props

Prop nameDescriptionTypeValuesDefault
modelValuepass the text for the chipstring-
isLinkedset if entry is a linked data entry and displayed with grey backgroundboolean-true
chipActiveset chip active (set color)boolean-false
isRemovableflag to specify if chip can be removedboolean-true
textStylingadd some custom text stylingobject-{}
editabledefine true if chip should be editable on clickboolean-false
assistiveTexttext read when a chip is focused - currently only available with prop
editable true
string-''
interpretTextAsHtmlif necessary chip text can be rendered as html
this feature is currently only available if the chip is not editable

caveat: setting this variable true can lead to XSS attacks. Only use
this prop on trusted content and never on user-provided content.
boolean-false

Events

Event namePropertiesDescription
clickedevent emitted when chip is clicked
update:model-valueundefined string - the displayed text string after editif chip is editable value is updated with this event
remove-entryundefined string - the displayed chip stringtriggered when the remove icon is clicked and returns the data behind the chip

Demo

Chips with not-linked and linked styling - the latter one being editable