datadog-ux-utils Documentation - v1.0.0
    Preparing search index...

    Function getCLSValue

    • Returns the current cumulative layout shift score.

      Returns number

      import { getCLSValue } from "datadog-ux-utils/layoutShifts";
      console.log("Current CLS:", getCLSValue());