Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Adding Image to the label #65

Open
@lelisloisBen

Description

@lelisloisBen

Hi, I'm trying to add an image in front of each option, my array of options look like that:

const icons = [
{ img: mbaltimeter, label: "altimeter", value: "altimeter" },
{ img: mbball, label: "ball", value: "ball" },
{ img: mbbatton, label: "batton", value: "batton" },
{ img: mbbike, label: "bike", value: "bike" },
]

as you can see I have Img holding the variable that imports the image path, the label and the value.
How can I show the image in each option in front of the label?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions