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

Function Map

packages/dev/s2-docs/pages/react-aria/Map.tsx:1–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export function Map() {
2 return (
3 <div
4 style={{
5 height: 300,
6 width: '100%',
7 borderRadius: 16,
8 overflow: 'hidden',
9 background: 'var(--gray-200)'
10 }}>
11 <svg
12 role="img"
13 aria-label="Map with directions to Harborlight Coffee"
14 width="100%"
15 height="100%"
16 viewBox="0 0 736 300"
17 preserveAspectRatio="xMidYMid slice"
18 style={{display: 'block'}}>
19 <g transform="rotate(-5 368 150) translate(108 13)">
20 <g fill="oklch(var(--lightness-300) 0.08 145)">
21 <rect x="68" y="38" width="84" height="64" rx="6" />
22 <rect x="468" y="38" width="84" height="64" rx="6" />
23 </g>
24 <path
25 d="M68 74 Q 110 52 152 82M468 60 Q 510 90 552 70"
26 fill="none"
27 stroke="oklch(calc(var(--lightness-200) + 8%) 0 0)"
28 strokeWidth="2"
29 />
30 <g fill="var(--gray-300)">
31 <rect x="-128" y="-40" width="76" height="60" rx="2" />
32 <rect x="-28" y="-40" width="76" height="60" rx="2" />
33 <rect x="72" y="-40" width="76" height="60" rx="2" />
34 <rect x="172" y="-40" width="76" height="60" rx="2" />
35 <rect x="272" y="-40" width="76" height="60" rx="2" />
36 <rect x="372" y="-40" width="76" height="60" rx="2" />
37 <rect x="472" y="-40" width="76" height="60" rx="2" />
38 <rect x="572" y="-40" width="76" height="60" rx="2" />
39 <rect x="-128" y="42" width="34" height="56" rx="2" />
40 <rect x="-88" y="42" width="36" height="24" rx="2" />
41 <rect x="-88" y="72" width="36" height="26" rx="2" />
42 <rect x="-28" y="42" width="76" height="56" rx="2" />
43 <rect x="172" y="42" width="36" height="56" rx="2" />
44 <rect x="214" y="42" width="34" height="24" rx="2" />
45 <rect x="214" y="72" width="34" height="26" rx="2" />
46 <rect x="272" y="42" width="76" height="24" rx="2" />
47 <rect x="272" y="72" width="30" height="26" rx="2" />
48 <rect x="308" y="72" width="40" height="26" rx="2" />
49 <rect x="372" y="42" width="40" height="56" rx="2" />
50 <rect x="418" y="42" width="30" height="56" rx="2" />
51 <rect x="572" y="42" width="76" height="56" rx="2" />
52 <rect x="-128" y="122" width="76" height="24" rx="2" />
53 <rect x="-128" y="152" width="36" height="26" rx="2" />
54 <rect x="-86" y="152" width="34" height="26" rx="2" />
55 <rect x="-28" y="122" width="76" height="56" rx="2" />
56 <rect x="72" y="122" width="40" height="56" rx="2" />
57 <rect x="118" y="122" width="30" height="24" rx="2" />
58 <rect x="172" y="122" width="76" height="24" rx="2" />
59 <rect x="172" y="152" width="36" height="26" rx="2" />
60 <rect x="272" y="122" width="34" height="56" rx="2" />

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected