"use strict";(globalThis.webpackChunk_elliemae_pui_diagnostics=globalThis.webpackChunk_elliemae_pui_diagnostics||[]).push([[7976],{116:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>o});var t=n(758);const s={},a=t.createContext(s);function r(e){const i=t.useContext(a);return t.useMemo(function(){return"function"==typeof e?e(i):{...i,...e}},[i,e])}function o(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),t.createElement(a.Provider,{value:i},e.children)}},8980:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>t,toc:()=>l});const t=JSON.parse('{"id":"api/functions/webvitals","title":"webvitals()","description":"log web vitals such as CLS, FID and LCP","source":"@site/docs/api/functions/webvitals.md","sourceDirName":"api/functions","slug":"/api/functions/webvitals","permalink":"/diagnostics/api/functions/webvitals","draft":false,"unlisted":false,"editUrl":"https://git.elliemae.io/platform-ui/pui-diagnostics.git/docs/api/functions/webvitals.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docsSidebar","previous":{"title":"redactPii()","permalink":"/diagnostics/api/functions/redactPii"},"next":{"title":"BaseLogSchema","permalink":"/diagnostics/api/type-aliases/BaseLogSchema"}}');var s=n(6070),a=n(116);const r={},o="webvitals()",c={},l=[{value:"Parameters",id:"parameters",level:2},{value:"logger",id:"logger",level:3},{value:"Returns",id:"returns",level:2}];function d(e){const i={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"webvitals",children:"webvitals()"})}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-ts",children:"function webvitals(logger: Logger): void;\n"})}),"\n",(0,s.jsx)(i.p,{children:"log web vitals such as CLS, FID and LCP"}),"\n",(0,s.jsx)(i.h2,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsx)(i.h3,{id:"logger",children:"logger"}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.a,{href:"/diagnostics/api/type-aliases/Logger",children:(0,s.jsx)(i.code,{children:"Logger"})})}),"\n",(0,s.jsx)(i.p,{children:"instance of logger"}),"\n",(0,s.jsx)(i.h2,{id:"returns",children:"Returns"}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.code,{children:"void"})})]})}function u(e={}){const{wrapper:i}={...(0,a.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}}}]);