Skip to content

Unable to show custom icon in the toast #269

@babarbahadur

Description

@babarbahadur

I've tried a couple of solutions to render but unfortunately none of them work.

Solution#1

showMessage({
icon: 'info',
   message: 'No network connection',
   type: 'danger',
   icon: <Icon name={"calendar-blank"} size={20} color={'red} />
})

Solution#2

showMessage({
icon: 'info',
   message: 'No network connection',
   type: 'danger',
   icon: () => { return(<Icon name={"calendar-blank"} size={20} color={'red} />)}
})

Solution#3

showMessage({
icon: 'info',
   message: 'No network connection',
   icon: <Icon name={"calendar-blank"} size={20} color={'red} />
})

Nothing works :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions