github chakra-ui/chakra-ui @chakra-ui/portal@1.1.0

latest releases: @chakra-ui/system@2.6.2, @chakra-ui/styled-system@2.9.2, @chakra-ui/storybook-addon@5.1.0...
3 years ago

Minor Changes

  • e41e6b81b
    #3210 Thanks
    @segunadebayo! - - Add support for changing
    the container that portal is appended to. You can now pass containerRef to
    portal.

    • Update portal README.md and tests.
    • Add support for appendToParentPortal={false} to opt out of nested portals.
    • Fix issue with portal zIndex container where it renders elements outside
      of view.
    • Renamed getContainer prop to containerRef to make it possible to pass
      the ref directly. This affects the Modal component primarily
    // Before
    <Portal getContainer={() => ref.current}>{/** Content */}</Portal>
    
    // After
    <Portal containerRef={ref}>{/** Content */}</Portal>

Patch Changes

  • Updated dependencies
    [b572bceed]:
    • @chakra-ui/hooks@1.1.3

Don't miss a new chakra-ui release

NewReleases is sending notifications on new releases.