Skip to content

Add callback to <Toast.Toggle /> onClick #607

@Amystherdam

Description

@Amystherdam

Describe the bug
Hey, what's up guys? I starting use flowbite-react and i trying call the onClose() event on Toast component. When X icon is clicked he close, but commands sended nothing run

To Reproduce

<Toast
  onClose={() => {
    console.log('Here');
  }}
>

Expected behavior
When X icon of Toast will clicked, should run commands informed on block

System information:

  • Device: Macbook Pro
  • OS: MacOS Monterey
  • Browser: Chrome 109.0.5414.119 (Official Build) (arm64)
  • Version: 12.5

Project information:

  • Tailwind: 3.2.4
  • Flowbite: 1.6.3
  • Flowbite React: 0.3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions