I am trying to implement radio cards, so basically a list or table of images from which the user can select a single one, which is then highlighted e.g. by a border while optionally some action on the page is triggered e.g. a preview image is updated.
e.g. like the image selection on ebay:
As far as I understand the documentation this could be achieved in two ways, either by creating a global state class for each card, or by creating a component state class for each card (which would be the preferable way I guess).
But both of these options don’t really look efficient to me, since I am looking at 30+ radio options, so the question is, is there any better, or recommended way ?
I have discovered that a radio_cards
function exists but I can’t find any documentation on it.