In Development
Last Updated: 08 Dec 2022 08:51 by ADMIN

Currently, the Chip component provides the option to add an image to it by using a CSS class whose background-color property has a value of the image we want to be displayed in the Chip.

While the above works in a scenario with a smaller number of Chips, where the values of the Chips are pre-defined, this approach can't be used when we have dynamic data that holds different URL links. To be able to pass an image URL to the Chip component one of the following can be implemented:

  • Option 1: Add an option to define a custom template for the Chip component
  • Option 2: Provide a Chip property to which the image URL can be passed and the component will handle the correct visualization