MCPcopy
hub / github.com/nygardk/react-share / getBoxPositionOnScreenCenter

Function getBoxPositionOnScreenCenter

src/ShareButton.tsx:49–52  ·  view source on GitHub ↗
(width: number, height: number)

Source from the content-addressed store, hash-verified

47});
48
49const getBoxPositionOnScreenCenter = (width: number, height: number) => ({
50 top: (window.screen.height - height) / 2,
51 left: (window.screen.width - width) / 2,
52});
53
54function getButtonBorderRadius(children: React.ReactNode) {
55 const childNodes = Children.toArray(children);

Callers 1

handleClickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…