Skip to content

CloseButtonProps are no longer exported from types in version 10 #1165

@gustaff-weldon

Description

@gustaff-weldon

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
CloseButtonProps were previously exported in index.ts in version 9. From version 10 they are missing. One has to import them from import type { CloseButtonProps } from 'react-toastify/dist/components'; which is prone to breaking if structure changes.

What is the expected behavior?
import type { CloseButtonProps } from 'react-toastify';

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 18.3.1, toastify 10.0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions