MCPcopy Index your code
hub / github.com/adobe/react-spectrum / inertValue

Function inertValue

packages/react-aria/src/utils/inertValue.ts:3–11  ·  view source on GitHub ↗
(value?: boolean)

Source from the content-addressed store, hash-verified

1import {version} from 'react';
2
3export function inertValue(value?: boolean): string | boolean | undefined {
4 const pieces = version.split('.');
5 const major = parseInt(pieces[0], 10);
6 if (major >= 19) {
7 return value;
8 }
9 // compatibility with React < 19
10 return value ? 'true' : undefined;
11}

Callers 13

TabPanelInnerFunction · 0.90
ListBox.tsxFile · 0.90
Table.tsxFile · 0.90
GridList.tsxFile · 0.90
Tree.tsxFile · 0.90
HorizontalCard.tsxFile · 0.90
HiddenTabsFunction · 0.90
Content.tsxFile · 0.90
HiddenBreadcrumbsFunction · 0.90
Card.tsxFile · 0.90
TagGroupInnerFunction · 0.90
SkeletonTextFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected