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

Function useScale

packages/@react-spectrum/s2/src/utils.ts:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21export function useScale(): Scale {
22 let matchesFine = useMediaQuery('not ((hover: hover) and (pointer: fine))');
23 if (matchesFine) {
24 return 'large';
25 }
26
27 return 'medium';
28}

Callers 7

TreeView.tsxFile · 0.90
TreeViewItemContentFunction · 0.90
ComboBox.tsxFile · 0.90
TableView.tsxFile · 0.90
DragPreviewFunction · 0.90
ListView.tsxFile · 0.90
Picker.tsxFile · 0.90

Calls 1

useMediaQueryFunction · 0.90

Tested by

no test coverage detected