Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 20 Aug 16:05
· 42 commits to main since this release
263435c

Major Changes

  • #79 6c0e7f9 Thanks @andrewrubin! - - Removed appendToBody prop.

    • The appendToBody prop has been removed. This prop was previously used to determine whether the modal should be appended to the body element.

    • Added renderTo prop.

      • Introduced the renderTo prop, which accepts an HTMLElement where the modal will be appended. This provides greater flexibilty, allowing users to specify any element to render the modal, including the body. This change enhances the customization options for the modal rendering.
    • Mark argument of hook as optional #62

    • Before

      <Modal appendToBody={true} />
    • After

      <Modal renderTo={modalRef} />