coldbydefault-portfolio
    Preparing search index...

    Function useMeasuredHeight

    • Tracks an element's rendered height, so a wrapper can animate to it when the content changes size. Returns a callback ref and the height in px (null until the first measurement).

      Type Parameters

      • T extends HTMLElement

      Returns readonly [(node: T | null) => (() => void) | undefined, number | null]