@coinbase/cds-mcp-server 8.49.2 → 8.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/mcp-docs/mobile/components/Avatar.txt +1 -1
- package/mcp-docs/mobile/components/DotStatusColor.txt +1 -1
- package/mcp-docs/mobile/components/DotSymbol.txt +1 -1
- package/mcp-docs/mobile/components/Icon.txt +1 -1
- package/mcp-docs/mobile/components/IconButton.txt +3 -0
- package/mcp-docs/mobile/components/RemoteImage.txt +1 -1
- package/mcp-docs/web/components/Avatar.txt +1 -1
- package/mcp-docs/web/components/DotStatusColor.txt +1 -1
- package/mcp-docs/web/components/DotSymbol.txt +1 -1
- package/mcp-docs/web/components/Icon.txt +1 -1
- package/mcp-docs/web/components/IconButton.txt +3 -0
- package/mcp-docs/web/components/RemoteImage.txt +1 -1
- package/mcp-docs/web/components/Tooltip.txt +88 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,14 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 8.51.0 ((3/9/2026, 06:39 AM PST))
|
|
12
|
+
|
|
13
|
+
This is an artificial version bump with no new change.
|
|
14
|
+
|
|
15
|
+
## 8.50.0 ((3/6/2026, 09:36 AM PST))
|
|
16
|
+
|
|
17
|
+
This is an artificial version bump with no new change.
|
|
18
|
+
|
|
11
19
|
## 8.49.2 ((3/6/2026, 09:04 AM PST))
|
|
12
20
|
|
|
13
21
|
This is an artificial version bump with no new change.
|
|
@@ -178,7 +178,7 @@ We've created a palette of identity colors using our CDS spectrum colors. When u
|
|
|
178
178
|
| `right` | `string \| number` | No | `-` | - |
|
|
179
179
|
| `rowGap` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
180
180
|
| `shape` | `circle \| square \| hexagon` | No | `-` | Shape of Avatar. |
|
|
181
|
-
| `size` | `s \|
|
|
181
|
+
| `size` | `s \| m \| l \| xl \| xxl \| xxxl` | No | `-` | Size for a given avatar. |
|
|
182
182
|
| `src` | `string` | No | `-` | Absolute url to the image that should be shown in the Avatar. If no src is provided then a generic fallback image is used. |
|
|
183
183
|
| `style` | `false \| RegisteredStyle<ViewStyle> \| Value \| AnimatedInterpolation<string \| number> \| WithAnimatedObject<ViewStyle> \| WithAnimatedArray<Falsy \| ViewStyle \| RegisteredStyle<ViewStyle> \| RecursiveArray<Falsy \| ViewStyle \| RegisteredStyle<ViewStyle>> \| readonly (Falsy \| ViewStyle \| RegisteredStyle<ViewStyle>)[]> \| null` | No | `-` | - |
|
|
184
184
|
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID Used to locate this element in unit and end-to-end tests. Used to locate this view in end-to-end tests. |
|
|
@@ -52,7 +52,7 @@ function Variants() {
|
|
|
52
52
|
| `children` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `-` | Children of where the dot will anchor to |
|
|
53
53
|
| `overlap` | `circular` | No | `-` | Indicates what shape Dot is overlapping |
|
|
54
54
|
| `pin` | `top-start \| top-end \| bottom-start \| bottom-end` | No | `-` | Position of dot relative to its parent |
|
|
55
|
-
| `size` | `
|
|
55
|
+
| `size` | `xs \| s \| m \| l` | No | `-` | Size of dot |
|
|
56
56
|
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |
|
|
57
57
|
|
|
58
58
|
|
|
@@ -125,7 +125,7 @@ function UseDotSymbolPairedWithAnotherAsset() {
|
|
|
125
125
|
| `imageStyle` | `null \| false \| ImageStyle \| RegisteredStyle<ImageStyle> \| RecursiveArray<Falsy \| ImageStyle \| RegisteredStyle<ImageStyle>>` | No | `-` | - |
|
|
126
126
|
| `overlap` | `circular` | No | `-` | Indicates what shape dot is overlapping |
|
|
127
127
|
| `pin` | `top-start \| top-end \| bottom-start \| bottom-end` | No | `-` | Position of the dot |
|
|
128
|
-
| `size` | `
|
|
128
|
+
| `size` | `xs \| s \| m \| l` | No | `-` | Size of the dot |
|
|
129
129
|
| `source` | `string \| ImageSourcePropType` | No | `-` | Image source path |
|
|
130
130
|
| `style` | `null \| false \| ViewStyle \| RegisteredStyle<ViewStyle> \| RecursiveArray<ViewStyle \| Falsy \| RegisteredStyle<ViewStyle>>` | No | `-` | - |
|
|
131
131
|
| `symbol` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `-` | Add an arbitrary ReactNode to the dot instead of an icon. |
|
|
@@ -49,7 +49,7 @@ Mobile apps cache font files in the native build, so you must rebuild your app a
|
|
|
49
49
|
| `color` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `primary` | Color of the icon when used as a foreground. |
|
|
50
50
|
| `dangerouslySetColor` | `string \| AnimatedInterpolation<string>` | No | `-` | - |
|
|
51
51
|
| `fallback` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `null` | Fallback element to render if unable to find an icon with matching name |
|
|
52
|
-
| `size` | `
|
|
52
|
+
| `size` | `xs \| s \| m \| l` | No | `m` | Size for a given icon. |
|
|
53
53
|
| `style` | `false \| Value \| AnimatedInterpolation<string \| number> \| RegisteredStyle<TextStyle> \| WithAnimatedObject<TextStyle> \| WithAnimatedArray<Falsy \| TextStyle \| RegisteredStyle<TextStyle> \| RecursiveArray<Falsy \| TextStyle \| RegisteredStyle<TextStyle>> \| readonly (Falsy \| TextStyle \| RegisteredStyle<TextStyle>)[]> \| null` | No | `-` | - |
|
|
54
54
|
| `styles` | `{ root?: StyleProp<ViewStyle>; icon?: StyleProp<TextStyle>; }` | No | `-` | Custom styles for individual elements of the Icon component |
|
|
55
55
|
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |
|
|
@@ -192,6 +192,8 @@ Since icon buttons have no visible text, an `accessibilityLabel` is required to
|
|
|
192
192
|
|
|
193
193
|
When composing a button with a visible label, use `accessibilityLabelledBy` to reference the label's `id` instead. See the [Claim Drop example](#claim-drop) below.
|
|
194
194
|
|
|
195
|
+
For most use cases, keep the IconButton target area at `40 x 40` or larger. Reserve `iconSize="xs"` for specific constrained layouts, and avoid shrinking the interactive area below `24 x 24`, which is the absolute minimum target size recommended by [WCAG 2.2 target size guidance](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html).
|
|
196
|
+
|
|
195
197
|
### Composed Examples
|
|
196
198
|
|
|
197
199
|
#### Claim Drop
|
|
@@ -292,6 +294,7 @@ An icon button with a badge showing the notification count. Uses `DotCount` to d
|
|
|
292
294
|
| `fontWeight` | `inherit \| FontWeight` | No | `-` | - |
|
|
293
295
|
| `gap` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
294
296
|
| `height` | `string \| number` | No | `-` | - |
|
|
297
|
+
| `iconSize` | `xs \| s \| m \| l` | No | `compact ? 's' : 'm'` | Size for the icon rendered inside the button. |
|
|
295
298
|
| `justifyContent` | `flex-start \| flex-end \| center \| space-between \| space-around \| space-evenly` | No | `-` | - |
|
|
296
299
|
| `left` | `string \| number` | No | `-` | - |
|
|
297
300
|
| `lineHeight` | `inherit \| LineHeight` | No | `-` | - |
|
|
@@ -93,7 +93,7 @@ If no images are shown, RemoteImage will show a default Fallback. Be aware that
|
|
|
93
93
|
| `resizeMode` | `repeat \| center \| stretch \| cover \| contain` | No | `-` | Determines how to resize the image when the frame doesnt match the raw image dimensions. cover: Scale the image uniformly (maintain the images aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding). contain: Scale the image uniformly (maintain the images aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding). stretch: Scale width and height independently, This may change the aspect ratio of the src. repeat: Repeat the image to cover the frame of the view. The image will keep its size and aspect ratio. (iOS only) center: Scale the image down so that it is completely visible, if bigger than the area of the view. The image will not be scaled up. |
|
|
94
94
|
| `shape` | `rectangle \| circle \| squircle \| square \| hexagon` | No | `square` | Shape of RemoteImage |
|
|
95
95
|
| `shouldApplyDarkModeEnhacements` | `boolean` | No | `-` | - |
|
|
96
|
-
| `size` | `s \|
|
|
96
|
+
| `size` | `s \| m \| l \| xl \| xxl \| xxxl` | No | `m` | Size for a given RemoteImage. If width or height is not defined, it will set size = m as default |
|
|
97
97
|
| `source` | `string \| number \| ImageURISource \| ImageURISource[]` | No | `-` | - |
|
|
98
98
|
| `src` | `string` | No | `-` | A string representing the resource identifier for the image. Similar to src from HTML. See https://reactnative.dev/docs/image#src |
|
|
99
99
|
| `srcSet` | `string` | No | `-` | Similar to srcset from HTML. See https://reactnative.dev/docs/image#srcset |
|
|
@@ -194,7 +194,7 @@ We've created a palette of identity colors using our CDS spectrum colors. When u
|
|
|
194
194
|
| `rowGap` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
195
195
|
| `selected` | `boolean` | No | `-` | Adds treatment that indicates that the Avatar is currently selected |
|
|
196
196
|
| `shape` | `circle \| square \| hexagon` | No | `-` | Shape of Avatar. Note: If the shape is a hexagon, do not use name. |
|
|
197
|
-
| `size` | `s \|
|
|
197
|
+
| `size` | `s \| m \| l \| xl \| xxl \| xxxl` | No | `-` | Size for a given avatar. |
|
|
198
198
|
| `src` | `string` | No | `-` | Absolute url to the image that should be shown in the Avatar. If no src is provided then a generic fallback image is used. |
|
|
199
199
|
| `style` | `CSSProperties` | No | `-` | - |
|
|
200
200
|
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |
|
|
@@ -52,7 +52,7 @@ function Variants() {
|
|
|
52
52
|
| `children` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `-` | Children of where the dot will anchor to |
|
|
53
53
|
| `overlap` | `circular` | No | `-` | Indicates what shape Dot is overlapping |
|
|
54
54
|
| `pin` | `top-start \| top-end \| bottom-start \| bottom-end` | No | `-` | Position of dot relative to its parent |
|
|
55
|
-
| `size` | `
|
|
55
|
+
| `size` | `xs \| s \| m \| l` | No | `-` | Size of dot |
|
|
56
56
|
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |
|
|
57
57
|
|
|
58
58
|
|
|
@@ -128,7 +128,7 @@ function UseDotSymbolPairedWithAnotherAsset() {
|
|
|
128
128
|
| `imageStyle` | `CSSProperties` | No | `-` | - |
|
|
129
129
|
| `overlap` | `circular` | No | `-` | Indicates what shape dot is overlapping |
|
|
130
130
|
| `pin` | `top-start \| top-end \| bottom-start \| bottom-end` | No | `-` | Position of the dot |
|
|
131
|
-
| `size` | `
|
|
131
|
+
| `size` | `xs \| s \| m \| l` | No | `-` | Size of the dot |
|
|
132
132
|
| `source` | `string` | No | `-` | Image source path |
|
|
133
133
|
| `style` | `CSSProperties` | No | `-` | - |
|
|
134
134
|
| `symbol` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `-` | Add an arbitrary ReactNode to the dot instead of an icon. |
|
|
@@ -128,7 +128,7 @@ import { Icon } from '@coinbase/cds-web/icons/Icon'
|
|
|
128
128
|
| `ref` | `((instance: HTMLElement \| null) => void) \| RefObject<HTMLElement> \| null` | No | `-` | - |
|
|
129
129
|
| `right` | `ResponsiveProp<Right<string \| number>>` | No | `-` | - |
|
|
130
130
|
| `rowGap` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
131
|
-
| `size` | `
|
|
131
|
+
| `size` | `xs \| s \| m \| l` | No | `m` | Size for a given icon. |
|
|
132
132
|
| `style` | `CSSProperties` | No | `-` | - |
|
|
133
133
|
| `styles` | `{ root?: CSSProperties; icon?: CSSProperties \| undefined; } \| undefined` | No | `-` | Custom inline styles for individual elements of the Icon component |
|
|
134
134
|
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |
|
|
@@ -201,6 +201,8 @@ Since icon buttons have no visible text, an `accessibilityLabel` is required to
|
|
|
201
201
|
|
|
202
202
|
When composing a button with a visible label, use `accessibilityLabelledBy` to reference the label's `id` instead. See the [Claim Drop example](#claim-drop) below.
|
|
203
203
|
|
|
204
|
+
For most use cases, keep the IconButton target area at `40 x 40` or larger. Reserve `iconSize="xs"` for specific constrained layouts, and avoid shrinking the interactive area below `24 x 24`, which is the absolute minimum target size recommended by [WCAG 2.2 target size guidance](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html).
|
|
205
|
+
|
|
204
206
|
### Composed Examples
|
|
205
207
|
|
|
206
208
|
#### Claim Drop
|
|
@@ -392,6 +394,7 @@ An icon button with a badge showing the notification count. Uses `DotCount` to d
|
|
|
392
394
|
| `gridTemplateRows` | `ResponsiveProp<GridTemplateRows<string \| number>>` | No | `-` | - |
|
|
393
395
|
| `height` | `ResponsiveProp<Height<string \| number>>` | No | `-` | - |
|
|
394
396
|
| `hidden` | `boolean \| undefined` | No | `-` | - |
|
|
397
|
+
| `iconSize` | `xs \| s \| m \| l` | No | `compact ? 's' : 'm'` | Size for the icon rendered inside the button. |
|
|
395
398
|
| `id` | `string \| undefined` | No | `-` | - |
|
|
396
399
|
| `inlist` | `any` | No | `-` | - |
|
|
397
400
|
| `inputMode` | `search \| text \| none \| email \| tel \| url \| numeric \| decimal \| undefined` | No | `-` | Hints at the type of data that might be entered by the user while editing the element or its contents |
|
|
@@ -148,7 +148,7 @@ If no images are shown, RemoteImage will show a default Fallback. Be aware that
|
|
|
148
148
|
| `right` | `ResponsiveProp<Right<string \| number>>` | No | `-` | - |
|
|
149
149
|
| `rowGap` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
150
150
|
| `shape` | `rectangle \| circle \| squircle \| square \| hexagon` | No | `square` | Shape of RemoteImage |
|
|
151
|
-
| `size` | `s \|
|
|
151
|
+
| `size` | `s \| m \| l \| xl \| xxl \| xxxl` | No | `m` | Size for a given RemoteImage. If width or height is not defined, it will set size = m as default |
|
|
152
152
|
| `source` | `string` | No | `-` | Absolute url to the image that should be shown in the RemoteImage. If no source is provided then a generic fallback image is used. |
|
|
153
153
|
| `style` | `CSSProperties` | No | `-` | - |
|
|
154
154
|
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |
|
|
@@ -94,7 +94,7 @@ You can use tooltips within `TextInput` to provide more context.
|
|
|
94
94
|
<InputLabel htmlFor="tooltip-input-example">Display name</InputLabel>
|
|
95
95
|
{/* Add padding to ensure 24x24 tooltip tap target for a11y compliance */}
|
|
96
96
|
<Tooltip content="This will be visible to other users.">
|
|
97
|
-
<Icon active color="fg" name="info" padding={0.75} size="xs" tabIndex={0} />
|
|
97
|
+
<Icon active color="fg" name="info" padding={0.75} size="xs" tabIndex={0} role="button" />
|
|
98
98
|
</Tooltip>
|
|
99
99
|
</HStack>
|
|
100
100
|
}
|
|
@@ -124,6 +124,92 @@ function TooltipVisibilityDelay() {
|
|
|
124
124
|
}
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
+
### Accessibility (A11y)
|
|
128
|
+
|
|
129
|
+
When tooltip content is non-interactive (text only), focus stays on the trigger and the tooltip is rendered in a portal. When tooltip content has **interactive elements** (links, buttons), set **`hasInteractiveContent={true}`** so the tooltip stays in the document flow and keyboard users can tab into the content. This sets `disablePortal`, `disableAutoFocus`, and `disableFocusTrap` appropriately.
|
|
130
|
+
|
|
131
|
+
**Tooltip on an icon (or other non-button anchor):**
|
|
132
|
+
|
|
133
|
+
When using an Icon (or other non-`<button>` element) as the tooltip trigger, add **`role="button"`** and **`tabIndex={0}`** so screen readers (e.g. VoiceOver) can discover it with arrow keys and announce the tooltip. If the icon performs an action on click, use **IconButton** instead so the trigger is a real `<button>`.
|
|
134
|
+
|
|
135
|
+
**Example: tooltip on an icon (string content)**
|
|
136
|
+
|
|
137
|
+
```jsx live
|
|
138
|
+
function TooltipIconStringContent() {
|
|
139
|
+
return (
|
|
140
|
+
<HStack alignItems="center" gap={2}>
|
|
141
|
+
<Tooltip content="This will be visible to other users.">
|
|
142
|
+
<Icon active color="fg" name="info" role="button" tabIndex={0} />
|
|
143
|
+
</Tooltip>
|
|
144
|
+
<Text as="span" font="body" color="fgMuted">
|
|
145
|
+
Focus the icon to hear the tooltip announced.
|
|
146
|
+
</Text>
|
|
147
|
+
</HStack>
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
**Example: tooltip on an icon (React node content)**
|
|
153
|
+
|
|
154
|
+
```jsx live
|
|
155
|
+
function TooltipIconReactNodeContent() {
|
|
156
|
+
return (
|
|
157
|
+
<HStack alignItems="center" gap={2}>
|
|
158
|
+
<Tooltip
|
|
159
|
+
content={
|
|
160
|
+
<Text font="label2">
|
|
161
|
+
Styled <strong>description</strong> text.
|
|
162
|
+
</Text>
|
|
163
|
+
}
|
|
164
|
+
>
|
|
165
|
+
<Icon active color="fg" name="info" role="button" tabIndex={0} />
|
|
166
|
+
</Tooltip>
|
|
167
|
+
<Text as="span" font="body" color="fgMuted">
|
|
168
|
+
Focus the icon to hear the tooltip announced.
|
|
169
|
+
</Text>
|
|
170
|
+
</HStack>
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**When tooltip content is interactive (links, buttons):**
|
|
176
|
+
|
|
177
|
+
- Prefer **Modal** or another pattern for actionable content when possible. Tooltips are intended for short, non-interactive descriptions.
|
|
178
|
+
- If you must use interactive content inside a tooltip, set **`hasInteractiveContent={true}`** so the content stays in the document flow. The prop allows keyboard users to tab into the tooltip, through its content, and out to the next focusable element on the page. With the default portal, focus behavior can be inconsistent when moving between trigger and content.
|
|
179
|
+
|
|
180
|
+
**Example: tooltip with interactive content**
|
|
181
|
+
|
|
182
|
+
```jsx live
|
|
183
|
+
function TooltipWithInteractiveContent() {
|
|
184
|
+
return (
|
|
185
|
+
<Box position="relative" paddingY={5}>
|
|
186
|
+
<Text as="span" font="body" color="fgMuted">
|
|
187
|
+
Set your default display currency.{' '}
|
|
188
|
+
</Text>
|
|
189
|
+
<Tooltip
|
|
190
|
+
content={
|
|
191
|
+
<Text font="label2" color="fg">
|
|
192
|
+
Learn more at{' '}
|
|
193
|
+
<Text
|
|
194
|
+
as="a"
|
|
195
|
+
href="https://www.coinbase.com/settings"
|
|
196
|
+
target="_blank"
|
|
197
|
+
rel="noopener noreferrer"
|
|
198
|
+
>
|
|
199
|
+
Settings
|
|
200
|
+
</Text>
|
|
201
|
+
.
|
|
202
|
+
</Text>
|
|
203
|
+
}
|
|
204
|
+
hasInteractiveContent
|
|
205
|
+
>
|
|
206
|
+
<Icon active color="fg" name="info" paddingStart={1} role="button" tabIndex={0} />
|
|
207
|
+
</Tooltip>
|
|
208
|
+
</Box>
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
127
213
|
## Props
|
|
128
214
|
|
|
129
215
|
| Prop | Type | Required | Default | Description |
|
|
@@ -138,6 +224,7 @@ function TooltipVisibilityDelay() {
|
|
|
138
224
|
| `elevation` | `0 \| 1 \| 2` | No | `-` | Determines a components shadow styles. Parent should have overflow set to visible to ensure styles are not clipped. |
|
|
139
225
|
| `focusTabIndexElements` | `boolean` | No | `false` | If true, the focus trap will include all elements with tabIndex values in the list of focusable elements. |
|
|
140
226
|
| `gap` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `1` | This value corresponds to how big the gap between the subject and the tooltip is. We do not encourage usage of this prop. But it is enabled for special cases as an escape hatch. |
|
|
227
|
+
| `hasInteractiveContent` | `boolean` | No | `-` | Whether the tooltip has interactive elements inside the content. |
|
|
141
228
|
| `invertColorScheme` | `boolean` | No | `true` | Invert the themes activeColorScheme for this component |
|
|
142
229
|
| `openDelay` | `number` | No | `-` | Delay (in ms) before showing the tooltip on pointer hover. Keyboard focus still opens immediately for accessibility. |
|
|
143
230
|
| `placement` | `top \| bottom \| left \| right` | No | `top` | Position of tooltip in relation to the subject. |
|