MCPcopy Index your code
hub / github.com/primer/react / dvh

Function dvh

packages/react/src/PageLayout/useStickyPaneHeight.ts:121–126  ·  view source on GitHub ↗

* Convert the given value to a dvh value, if supported, otherwise it falls back * to vh

(value: number)

Source from the content-addressed store, hash-verified

119 * to vh
120 */
121function dvh(value: number): string {
122 if (supportsDVH) {
123 return `${value}dvh`
124 }
125 return `${value}vh`
126}

Callers 1

useStickyPaneHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected