It is not clear what your question is. You have successfully created the chip. “Icon chips” and “Contact chips” are not specific classes or versions of chips; they are just demonstrations from the f7 docs of the kinds of things you can use chips for. If you want an icon in the chip’s media circle then use one of the icon properties for the chip. If you want some text in there, then set that text using the media property of the chip. If you want a picture in there, then you need to use the media slot as you have demonstrated above.
Hi OK, maybe that explains why I failed so far. ideally I would like to have a media (jpeg) in the circle, similar to what they called contact chip. As fillback I would like to use an icon, similar to what they call ed icon chip.
Actually I realized my code works as expected, just had a wrong filename for the image
Any advise if I want to play aroiund with icon chips how to get the icon not as part but as shown in the f7 eample?
If you want more control over the component in the media of the chip, you can replace the media or icon properties with Label or f7-icon or oh-icon components. For example:
- component: f7-chip
config:
text: John Doe
iconF7: person_fill
mediaBgColor: red
gives the same result as
- component: f7-chip
config:
text: John Doe
mediaBgColor: red
slots:
media:
- component: f7-icon
config:
f7: person_fill
Similarly,
- component: f7-chip
config:
text: Jennifer
mediaBgColor: pink
media: J