Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
21
export
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.tsx
File · 0.90
TreeViewItemContent
Function · 0.90
ComboBox.tsx
File · 0.90
TableView.tsx
File · 0.90
DragPreview
Function · 0.90
ListView.tsx
File · 0.90
Picker.tsx
File · 0.90
Calls
1
useMediaQuery
Function · 0.90
Tested by
no test coverage detected