MCPcopy Create free account
hub / github.com/adobe/react-spectrum / setPanel

Function setPanel

packages/dev/s2-docs/pages/s2/home/ExampleApp2.tsx:77–80  ·  view source on GitHub ↗
(panel: Key | null)

Source from the content-addressed store, hash-verified

75 let [isLarge, setLarge] = useState(true);
76
77 let setPanel = (panel: Key | null) => {
78 onPanelChange?.(panel);
79 setSelectedPanel(panel);
80 };
81
82 let ref = useRef<HTMLDivElement | null>(null);
83 useResizeObserver({

Callers 2

onResizeFunction · 0.85
ExampleApp2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected