Skip to main content

useContainerSize

    Import​

    import { useContainerSize } from '@dynatrace/strato-components/core';

    Demo​

    The sizeRef is the ref which should be added to the container that needs to be observed. The result is a ContainerSize object, consisting of the width and height of the corresponding container.

    Still have questions?
    Find answers in the Dynatrace Community