@coinbase/cds-mcp-server 8.17.1 → 8.17.3
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/Accordion.txt +189 -0
- package/mcp-docs/mobile/components/AccordionItem.txt +30 -0
- package/mcp-docs/mobile/components/Alert.txt +156 -0
- package/mcp-docs/mobile/components/AreaChart.txt +266 -0
- package/mcp-docs/mobile/components/Avatar.txt +196 -0
- package/mcp-docs/mobile/components/AvatarButton.txt +226 -0
- package/mcp-docs/mobile/components/Banner.txt +222 -0
- package/mcp-docs/mobile/components/BarChart.txt +816 -0
- package/mcp-docs/mobile/components/Box.txt +174 -0
- package/mcp-docs/mobile/components/BrowserBar.txt +147 -0
- package/mcp-docs/mobile/components/Button.txt +199 -0
- package/mcp-docs/mobile/components/ButtonGroup.txt +80 -0
- package/mcp-docs/mobile/components/Carousel.txt +1084 -0
- package/mcp-docs/mobile/components/CartesianChart.txt +826 -0
- package/mcp-docs/mobile/components/CellMedia.txt +71 -0
- package/mcp-docs/mobile/components/Checkbox.txt +246 -0
- package/mcp-docs/mobile/components/CheckboxCell.txt +202 -0
- package/mcp-docs/mobile/components/CheckboxGroup.txt +285 -0
- package/mcp-docs/mobile/components/Chip.txt +195 -0
- package/mcp-docs/mobile/components/Coachmark.txt +158 -0
- package/mcp-docs/mobile/components/Collapsible.txt +105 -0
- package/mcp-docs/mobile/components/ContainedAssetCard.txt +135 -0
- package/mcp-docs/mobile/components/ContentCard.txt +366 -0
- package/mcp-docs/mobile/components/ContentCardBody.txt +136 -0
- package/mcp-docs/mobile/components/ContentCardFooter.txt +128 -0
- package/mcp-docs/mobile/components/ContentCardHeader.txt +146 -0
- package/mcp-docs/mobile/components/ContentCell.txt +227 -0
- package/mcp-docs/mobile/components/ControlGroup.txt +444 -0
- package/mcp-docs/mobile/components/DatePicker.txt +497 -0
- package/mcp-docs/mobile/components/Divider.txt +139 -0
- package/mcp-docs/mobile/components/DotCount.txt +146 -0
- package/mcp-docs/mobile/components/DotStatusColor.txt +59 -0
- package/mcp-docs/mobile/components/DotSymbol.txt +135 -0
- package/mcp-docs/mobile/components/Fallback.txt +158 -0
- package/mcp-docs/mobile/components/FloatingAssetCard.txt +156 -0
- package/mcp-docs/mobile/components/HStack.txt +235 -0
- package/mcp-docs/mobile/components/HeroSquare.txt +48 -0
- package/mcp-docs/mobile/components/Icon.txt +52 -0
- package/mcp-docs/mobile/components/IconButton.txt +269 -0
- package/mcp-docs/mobile/components/InputChip.txt +188 -0
- package/mcp-docs/mobile/components/Interactable.txt +187 -0
- package/mcp-docs/mobile/components/LineChart.txt +1325 -0
- package/mcp-docs/mobile/components/Link.txt +292 -0
- package/mcp-docs/mobile/components/ListCell.txt +391 -0
- package/mcp-docs/mobile/components/LogoMark.txt +85 -0
- package/mcp-docs/mobile/components/LogoWordMark.txt +94 -0
- package/mcp-docs/mobile/components/Lottie.txt +139 -0
- package/mcp-docs/mobile/components/LottieStatusAnimation.txt +47 -0
- package/mcp-docs/mobile/components/Modal.txt +84 -0
- package/mcp-docs/mobile/components/ModalBody.txt +34 -0
- package/mcp-docs/mobile/components/ModalFooter.txt +25 -0
- package/mcp-docs/mobile/components/ModalHeader.txt +28 -0
- package/mcp-docs/mobile/components/MultiContentModule.txt +380 -0
- package/mcp-docs/mobile/components/NavigationTitle.txt +132 -0
- package/mcp-docs/mobile/components/NavigationTitleSelect.txt +142 -0
- package/mcp-docs/mobile/components/NudgeCard.txt +90 -0
- package/mcp-docs/mobile/components/Numpad.txt +341 -0
- package/mcp-docs/mobile/components/Overlay.txt +152 -0
- package/mcp-docs/mobile/components/PageFooter.txt +161 -0
- package/mcp-docs/mobile/components/PageHeader.txt +186 -0
- package/mcp-docs/mobile/components/PeriodSelector.txt +408 -0
- package/mcp-docs/mobile/components/Pictogram.txt +48 -0
- package/mcp-docs/mobile/components/Point.txt +205 -0
- package/mcp-docs/mobile/components/PortalProvider.txt +79 -0
- package/mcp-docs/mobile/components/Pressable.txt +211 -0
- package/mcp-docs/mobile/components/ProgressBar.txt +130 -0
- package/mcp-docs/mobile/components/ProgressBarWithFixedLabels.txt +161 -0
- package/mcp-docs/mobile/components/ProgressBarWithFloatLabel.txt +138 -0
- package/mcp-docs/mobile/components/ProgressCircle.txt +237 -0
- package/mcp-docs/mobile/components/Radio.txt +242 -0
- package/mcp-docs/mobile/components/RadioCell.txt +202 -0
- package/mcp-docs/mobile/components/RadioGroup.txt +282 -0
- package/mcp-docs/mobile/components/ReferenceLine.txt +153 -0
- package/mcp-docs/mobile/components/RemoteImage.txt +106 -0
- package/mcp-docs/mobile/components/RemoteImageGroup.txt +61 -0
- package/mcp-docs/mobile/components/RollingNumber.txt +789 -0
- package/mcp-docs/mobile/components/Scrubber.txt +204 -0
- package/mcp-docs/mobile/components/SearchInput.txt +192 -0
- package/mcp-docs/mobile/components/SectionHeader.txt +205 -0
- package/mcp-docs/mobile/components/SegmentedTabs.txt +316 -0
- package/mcp-docs/mobile/components/Select.txt +212 -0
- package/mcp-docs/mobile/components/SelectChip.txt +324 -0
- package/mcp-docs/mobile/components/SelectOption.txt +85 -0
- package/mcp-docs/mobile/components/SlideButton.txt +331 -0
- package/mcp-docs/mobile/components/Spacer.txt +84 -0
- package/mcp-docs/mobile/components/Sparkline.txt +123 -0
- package/mcp-docs/mobile/components/SparklineGradient.txt +107 -0
- package/mcp-docs/mobile/components/SparklineInteractive.txt +157 -0
- package/mcp-docs/mobile/components/SparklineInteractiveHeader.txt +73 -0
- package/mcp-docs/mobile/components/Spinner.txt +49 -0
- package/mcp-docs/mobile/components/SpotIcon.txt +48 -0
- package/mcp-docs/mobile/components/SpotRectangle.txt +48 -0
- package/mcp-docs/mobile/components/SpotSquare.txt +48 -0
- package/mcp-docs/mobile/components/Stepper.txt +528 -0
- package/mcp-docs/mobile/components/SubBrandLogoMark.txt +126 -0
- package/mcp-docs/mobile/components/SubBrandLogoWordMark.txt +126 -0
- package/mcp-docs/mobile/components/Switch.txt +98 -0
- package/mcp-docs/mobile/components/TabIndicator.txt +49 -0
- package/mcp-docs/mobile/components/TabLabel.txt +154 -0
- package/mcp-docs/mobile/components/TabNavigation.txt +147 -0
- package/mcp-docs/mobile/components/TabbedChips.txt +143 -0
- package/mcp-docs/mobile/components/Tabs.txt +191 -0
- package/mcp-docs/mobile/components/Tag.txt +301 -0
- package/mcp-docs/mobile/components/Text.txt +212 -0
- package/mcp-docs/mobile/components/TextInput.txt +718 -0
- package/mcp-docs/mobile/components/ThemeProvider.txt +133 -0
- package/mcp-docs/mobile/components/Toast.txt +197 -0
- package/mcp-docs/mobile/components/Tooltip.txt +60 -0
- package/mcp-docs/mobile/components/TopNavBar.txt +162 -0
- package/mcp-docs/mobile/components/Tour.txt +159 -0
- package/mcp-docs/mobile/components/Tray.txt +253 -0
- package/mcp-docs/mobile/components/UpsellCard.txt +322 -0
- package/mcp-docs/mobile/components/VStack.txt +223 -0
- package/mcp-docs/mobile/components/XAxis.txt +622 -0
- package/mcp-docs/mobile/components/YAxis.txt +568 -0
- package/mcp-docs/mobile/getting-started/introduction.txt +99 -0
- package/mcp-docs/mobile/getting-started/mcp-server.txt +94 -0
- package/mcp-docs/mobile/getting-started/playground.txt +25 -0
- package/mcp-docs/mobile/hooks/useDimensions.txt +47 -0
- package/mcp-docs/mobile/hooks/useOverlayContentContext.txt +215 -0
- package/mcp-docs/mobile/hooks/useTheme.txt +110 -0
- package/mcp-docs/mobile/routes.txt +132 -0
- package/mcp-docs/web/components/Accordion.txt +190 -0
- package/mcp-docs/web/components/AccordionItem.txt +32 -0
- package/mcp-docs/web/components/Alert.txt +165 -0
- package/mcp-docs/web/components/AreaChart.txt +511 -0
- package/mcp-docs/web/components/Avatar.txt +212 -0
- package/mcp-docs/web/components/AvatarButton.txt +241 -0
- package/mcp-docs/web/components/Banner.txt +227 -0
- package/mcp-docs/web/components/BarChart.txt +1268 -0
- package/mcp-docs/web/components/Box.txt +176 -0
- package/mcp-docs/web/components/Button.txt +213 -0
- package/mcp-docs/web/components/ButtonGroup.txt +80 -0
- package/mcp-docs/web/components/Calendar.txt +182 -0
- package/mcp-docs/web/components/Carousel.txt +1576 -0
- package/mcp-docs/web/components/CartesianChart.txt +1045 -0
- package/mcp-docs/web/components/CellMedia.txt +57 -0
- package/mcp-docs/web/components/Checkbox.txt +189 -0
- package/mcp-docs/web/components/CheckboxCell.txt +203 -0
- package/mcp-docs/web/components/CheckboxGroup.txt +220 -0
- package/mcp-docs/web/components/Chip.txt +197 -0
- package/mcp-docs/web/components/Coachmark.txt +189 -0
- package/mcp-docs/web/components/Collapsible.txt +120 -0
- package/mcp-docs/web/components/ContainedAssetCard.txt +233 -0
- package/mcp-docs/web/components/ContentCard.txt +368 -0
- package/mcp-docs/web/components/ContentCardBody.txt +138 -0
- package/mcp-docs/web/components/ContentCardFooter.txt +130 -0
- package/mcp-docs/web/components/ContentCardHeader.txt +148 -0
- package/mcp-docs/web/components/ContentCell.txt +220 -0
- package/mcp-docs/web/components/ControlGroup.txt +437 -0
- package/mcp-docs/web/components/DatePicker.txt +506 -0
- package/mcp-docs/web/components/Divider.txt +144 -0
- package/mcp-docs/web/components/DotCount.txt +150 -0
- package/mcp-docs/web/components/DotStatusColor.txt +59 -0
- package/mcp-docs/web/components/DotSymbol.txt +138 -0
- package/mcp-docs/web/components/Dropdown.txt +120 -0
- package/mcp-docs/web/components/Fallback.txt +164 -0
- package/mcp-docs/web/components/FloatingAssetCard.txt +251 -0
- package/mcp-docs/web/components/FullscreenAlert.txt +70 -0
- package/mcp-docs/web/components/FullscreenModal.txt +146 -0
- package/mcp-docs/web/components/FullscreenModalLayout.txt +188 -0
- package/mcp-docs/web/components/Grid.txt +237 -0
- package/mcp-docs/web/components/GridColumn.txt +210 -0
- package/mcp-docs/web/components/HStack.txt +237 -0
- package/mcp-docs/web/components/HeroSquare.txt +49 -0
- package/mcp-docs/web/components/Icon.txt +146 -0
- package/mcp-docs/web/components/IconButton.txt +391 -0
- package/mcp-docs/web/components/InputChip.txt +188 -0
- package/mcp-docs/web/components/Interactable.txt +194 -0
- package/mcp-docs/web/components/LineChart.txt +1577 -0
- package/mcp-docs/web/components/Link.txt +244 -0
- package/mcp-docs/web/components/ListCell.txt +397 -0
- package/mcp-docs/web/components/LogoMark.txt +85 -0
- package/mcp-docs/web/components/LogoWordMark.txt +94 -0
- package/mcp-docs/web/components/Lottie.txt +158 -0
- package/mcp-docs/web/components/LottieStatusAnimation.txt +58 -0
- package/mcp-docs/web/components/MediaQueryProvider.txt +109 -0
- package/mcp-docs/web/components/Modal.txt +193 -0
- package/mcp-docs/web/components/ModalBody.txt +118 -0
- package/mcp-docs/web/components/ModalFooter.txt +120 -0
- package/mcp-docs/web/components/ModalHeader.txt +124 -0
- package/mcp-docs/web/components/MultiContentModule.txt +382 -0
- package/mcp-docs/web/components/NavigationBar.txt +103 -0
- package/mcp-docs/web/components/NavigationTitle.txt +26 -0
- package/mcp-docs/web/components/NavigationTitleSelect.txt +46 -0
- package/mcp-docs/web/components/NudgeCard.txt +182 -0
- package/mcp-docs/web/components/Overlay.txt +172 -0
- package/mcp-docs/web/components/PageFooter.txt +185 -0
- package/mcp-docs/web/components/PageHeader.txt +244 -0
- package/mcp-docs/web/components/Pagination.txt +500 -0
- package/mcp-docs/web/components/PeriodSelector.txt +704 -0
- package/mcp-docs/web/components/Pictogram.txt +49 -0
- package/mcp-docs/web/components/Point.txt +461 -0
- package/mcp-docs/web/components/PortalProvider.txt +77 -0
- package/mcp-docs/web/components/Pressable.txt +194 -0
- package/mcp-docs/web/components/ProgressBar.txt +164 -0
- package/mcp-docs/web/components/ProgressBarWithFixedLabels.txt +213 -0
- package/mcp-docs/web/components/ProgressBarWithFloatLabel.txt +182 -0
- package/mcp-docs/web/components/ProgressCircle.txt +444 -0
- package/mcp-docs/web/components/Radio.txt +220 -0
- package/mcp-docs/web/components/RadioCell.txt +216 -0
- package/mcp-docs/web/components/RadioGroup.txt +289 -0
- package/mcp-docs/web/components/ReferenceLine.txt +452 -0
- package/mcp-docs/web/components/RemoteImage.txt +166 -0
- package/mcp-docs/web/components/RemoteImageGroup.txt +87 -0
- package/mcp-docs/web/components/RollingNumber.txt +1022 -0
- package/mcp-docs/web/components/Scrubber.txt +232 -0
- package/mcp-docs/web/components/SearchInput.txt +118 -0
- package/mcp-docs/web/components/SectionHeader.txt +218 -0
- package/mcp-docs/web/components/SegmentedTabs.txt +325 -0
- package/mcp-docs/web/components/Select.txt +225 -0
- package/mcp-docs/web/components/SelectChip.txt +315 -0
- package/mcp-docs/web/components/SelectOption.txt +166 -0
- package/mcp-docs/web/components/Sidebar.txt +350 -0
- package/mcp-docs/web/components/SidebarItem.txt +132 -0
- package/mcp-docs/web/components/SidebarMoreMenu.txt +31 -0
- package/mcp-docs/web/components/Spacer.txt +174 -0
- package/mcp-docs/web/components/Sparkline.txt +123 -0
- package/mcp-docs/web/components/SparklineGradient.txt +107 -0
- package/mcp-docs/web/components/SparklineInteractive.txt +154 -0
- package/mcp-docs/web/components/SparklineInteractiveHeader.txt +77 -0
- package/mcp-docs/web/components/Spinner.txt +129 -0
- package/mcp-docs/web/components/SpotIcon.txt +49 -0
- package/mcp-docs/web/components/SpotRectangle.txt +49 -0
- package/mcp-docs/web/components/SpotSquare.txt +49 -0
- package/mcp-docs/web/components/Stepper.txt +683 -0
- package/mcp-docs/web/components/SubBrandLogoMark.txt +126 -0
- package/mcp-docs/web/components/SubBrandLogoWordMark.txt +126 -0
- package/mcp-docs/web/components/Switch.txt +86 -0
- package/mcp-docs/web/components/TabIndicator.txt +49 -0
- package/mcp-docs/web/components/TabLabel.txt +159 -0
- package/mcp-docs/web/components/TabNavigation.txt +160 -0
- package/mcp-docs/web/components/TabbedChips.txt +156 -0
- package/mcp-docs/web/components/Table.txt +368 -0
- package/mcp-docs/web/components/TableBody.txt +84 -0
- package/mcp-docs/web/components/TableCaption.txt +103 -0
- package/mcp-docs/web/components/TableCell.txt +166 -0
- package/mcp-docs/web/components/TableCellFallback.txt +98 -0
- package/mcp-docs/web/components/TableFooter.txt +84 -0
- package/mcp-docs/web/components/TableHeader.txt +101 -0
- package/mcp-docs/web/components/TableRow.txt +141 -0
- package/mcp-docs/web/components/Tabs.txt +213 -0
- package/mcp-docs/web/components/Tag.txt +305 -0
- package/mcp-docs/web/components/Text.txt +233 -0
- package/mcp-docs/web/components/TextInput.txt +653 -0
- package/mcp-docs/web/components/ThemeProvider.txt +200 -0
- package/mcp-docs/web/components/TileButton.txt +159 -0
- package/mcp-docs/web/components/Toast.txt +204 -0
- package/mcp-docs/web/components/Tooltip.txt +90 -0
- package/mcp-docs/web/components/Tour.txt +180 -0
- package/mcp-docs/web/components/Tray.txt +289 -0
- package/mcp-docs/web/components/UpsellCard.txt +320 -0
- package/mcp-docs/web/components/VStack.txt +225 -0
- package/mcp-docs/web/components/XAxis.txt +620 -0
- package/mcp-docs/web/components/YAxis.txt +549 -0
- package/mcp-docs/web/getting-started/introduction.txt +99 -0
- package/mcp-docs/web/getting-started/mcp-server.txt +94 -0
- package/mcp-docs/web/getting-started/playground.txt +25 -0
- package/mcp-docs/web/hooks/useBreakpoints.txt +33 -0
- package/mcp-docs/web/hooks/useDimensions.txt +55 -0
- package/mcp-docs/web/hooks/useHasMounted.txt +55 -0
- package/mcp-docs/web/hooks/useIsoEffect.txt +42 -0
- package/mcp-docs/web/hooks/useMediaQuery.txt +94 -0
- package/mcp-docs/web/hooks/useOverlayContentContext.txt +217 -0
- package/mcp-docs/web/hooks/useScrollBlocker.txt +63 -0
- package/mcp-docs/web/hooks/useTheme.txt +105 -0
- package/mcp-docs/web/routes.txt +155 -0
- package/package.json +1 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
|
|
2
|
+
# useTheme
|
|
3
|
+
Returns the currently active theme including color schemes, spacing, typography, and other design tokens.
|
|
4
|
+
|
|
5
|
+
## Import
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
import { useTheme } from '@coinbase/cds-web'
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Examples
|
|
12
|
+
|
|
13
|
+
### `useTheme` hook
|
|
14
|
+
|
|
15
|
+
The `useTheme` hook provides access to the current `theme` and `activeColorScheme`.
|
|
16
|
+
|
|
17
|
+
The `color` and `spectrum` objects automatically change based on the `activeColorScheme`.
|
|
18
|
+
|
|
19
|
+
```jsx
|
|
20
|
+
const theme = useTheme();
|
|
21
|
+
theme.activeColorScheme; // "light" or "dark"
|
|
22
|
+
theme.spectrum; // Resolves to lightSpectrum or darkSpectrum, depends on activeColorScheme
|
|
23
|
+
theme.color; // Resolves to lightColor or darkColor, depends on activeColorScheme
|
|
24
|
+
theme.color.bgPrimary; // "rgb(0,82,255)" or "rgb(87,139,250)", depends on activeColorScheme
|
|
25
|
+
theme.space[2]; // 16
|
|
26
|
+
theme.borderRadius[200]; // 8
|
|
27
|
+
theme.fontSize.display3; // "2.5rem"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
:::tip
|
|
31
|
+
For best performance, prefer to use CSS Variables instead of the `useTheme` hook whenever possible. [Read more about CSS Variables here →](/components/other/ThemeProvider#themeprovider-css-variables)
|
|
32
|
+
:::
|
|
33
|
+
|
|
34
|
+
### Basic usage
|
|
35
|
+
|
|
36
|
+
```tsx live
|
|
37
|
+
function Example() {
|
|
38
|
+
const theme = useTheme();
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<VStack gap={2}>
|
|
42
|
+
<Box padding={3} background="bgAlternate" borderRadius={300}>
|
|
43
|
+
<TextHeadline>Current Color Scheme: {theme.activeColorScheme}</TextHeadline>
|
|
44
|
+
</Box>
|
|
45
|
+
|
|
46
|
+
<VStack padding={3} background="bgAlternate" borderRadius={300}>
|
|
47
|
+
<Text font="headline">Theme Colors</Text>
|
|
48
|
+
<Text>Background: {theme.color.bg}</Text>
|
|
49
|
+
<Text>Foreground: {theme.color.fg}</Text>
|
|
50
|
+
<Text>Background Primary: {theme.color.bgPrimary}</Text>
|
|
51
|
+
<Text>Foreground Primary: {theme.color.fgPrimary}</Text>
|
|
52
|
+
</VStack>
|
|
53
|
+
</VStack>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Styling with Theme values
|
|
59
|
+
|
|
60
|
+
```tsx live
|
|
61
|
+
function Example() {
|
|
62
|
+
const theme = useTheme();
|
|
63
|
+
|
|
64
|
+
const styles = {
|
|
65
|
+
container: {
|
|
66
|
+
padding: theme.space[3],
|
|
67
|
+
backgroundColor: theme.color.bgAlternate,
|
|
68
|
+
borderRadius: theme.borderRadius[300],
|
|
69
|
+
boxShadow: theme.shadow.elevation1,
|
|
70
|
+
},
|
|
71
|
+
text: {
|
|
72
|
+
fontSize: theme.fontSize.body,
|
|
73
|
+
lineHeight: theme.lineHeight.body,
|
|
74
|
+
fontFamily: theme.fontFamily.body,
|
|
75
|
+
color: theme.color.fgPrimary,
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<Box style={styles.container}>
|
|
81
|
+
<Text style={styles.text}>Styled using theme values</Text>
|
|
82
|
+
</Box>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Color scheme detection
|
|
88
|
+
|
|
89
|
+
```tsx live
|
|
90
|
+
function Example() {
|
|
91
|
+
const theme = useTheme();
|
|
92
|
+
const isDarkMode = theme.activeColorScheme === 'dark';
|
|
93
|
+
|
|
94
|
+
return (
|
|
95
|
+
<Box gap={0.5} borderRadius={300} alignItems="baseline">
|
|
96
|
+
<Text as="span">This box adapts to {isDarkMode ? 'dark' : 'light'} mode</Text>
|
|
97
|
+
<TextHeadline as="span" color={isDarkMode ? 'fgMuted' : 'fgPrimary'}>
|
|
98
|
+
with adaptive text colors
|
|
99
|
+
</TextHeadline>
|
|
100
|
+
</Box>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
|
|
2
|
+
# CDS Routes
|
|
3
|
+
|
|
4
|
+
## Getting Started
|
|
5
|
+
|
|
6
|
+
- [playground](web/getting-started/playground.txt)
|
|
7
|
+
- [mcp-server](web/getting-started/mcp-server.txt)
|
|
8
|
+
- [introduction](web/getting-started/introduction.txt)
|
|
9
|
+
|
|
10
|
+
## Components
|
|
11
|
+
|
|
12
|
+
- [Text](web/components/Text.txt): A generic text element.
|
|
13
|
+
- [Tag](web/components/Tag.txt): A small label for categorizing or labeling content.
|
|
14
|
+
- [Link](web/components/Link.txt): A pressable Text component.
|
|
15
|
+
- [Tray](web/components/Tray.txt): An elevated container pinned to the bottom of the screen.
|
|
16
|
+
- [Tooltip](web/components/Tooltip.txt): A component that displays additional information on hover.
|
|
17
|
+
- [Toast](web/components/Toast.txt): A temporary notification that appears at the bottom of the screen.
|
|
18
|
+
- [PortalProvider](web/components/PortalProvider.txt): A component that manages the rendering of portals for overlay components.
|
|
19
|
+
- [Overlay](web/components/Overlay.txt): A semi-transparent layer that covers content.
|
|
20
|
+
- [ModalHeader](web/components/ModalHeader.txt): A component that provides a consistent header section for Modal.
|
|
21
|
+
- [ModalFooter](web/components/ModalFooter.txt): A footer component for Modal.
|
|
22
|
+
- [ModalBody](web/components/ModalBody.txt): A main content area component for Modal.
|
|
23
|
+
- [Modal](web/components/Modal.txt): A component that displays content in a window that requires user interaction.
|
|
24
|
+
- [FullscreenModalLayout](web/components/FullscreenModalLayout.txt): Provides the layout structure, overlay, focus trapping, and animations for fullscreen modals. Intended for internal use within Modal component variants.
|
|
25
|
+
- [FullscreenModal](web/components/FullscreenModal.txt): FullscreenModal is a component that displays content in a full-screen overlay, typically used for immersive experiences or complex interactions.
|
|
26
|
+
- [FullscreenAlert](web/components/FullscreenAlert.txt): A fullscreen alert component for displaying important messages that require user attention.
|
|
27
|
+
- [Alert](web/components/Alert.txt): A dialog that communicates critical information and blocks user interaction.
|
|
28
|
+
- [ThemeProvider](web/components/ThemeProvider.txt): Provides the theme context to all child components, and automatically generates CSS Variables for dynamic theming.
|
|
29
|
+
- [MediaQueryProvider](web/components/MediaQueryProvider.txt): Manages window.matchMedia subscriptions with SSR support.
|
|
30
|
+
- [DotSymbol](web/components/DotSymbol.txt): Dots are component adornments, typically used to communicate a numerical value or indicate the status or identity of a component to the end-user.
|
|
31
|
+
- [DotStatusColor](web/components/DotStatusColor.txt): Dots are component adornments, typically used to communicate a numerical value or indicate the status or identity of a component to the end-user.
|
|
32
|
+
- [DotCount](web/components/DotCount.txt): Dots are component adornments, typically used to communicate a numerical value or indicate the status or identity of a component to the end-user.
|
|
33
|
+
- [DatePicker](web/components/DatePicker.txt): Date Picker allows our global users to input past, present, future and important dates into our interface in a simple and intuitive manner. Date Picker offers both manual and calendar entry options - accommodating both internationalization and accessibility needs while being adaptable across screen platforms.
|
|
34
|
+
- [Calendar](web/components/Calendar.txt): Calendar is a flexible, accessible date grid component for selecting dates, supporting keyboard navigation, disabled/highlighted dates, and custom rendering.
|
|
35
|
+
- [RollingNumber](web/components/RollingNumber.txt): A numeric display that animates value changes with rolling digits.
|
|
36
|
+
- [Tour](web/components/Tour.txt): Creates guided tours of a user interface.
|
|
37
|
+
- [Tabs](web/components/Tabs.txt): Tabs is a flexible, accessible tab navigation component for switching between content sections. It supports custom tab components, animated active indicators, and full keyboard navigation.
|
|
38
|
+
- [TabbedChips](web/components/TabbedChips.txt): Tab chips are to be used in a filter setting where the user is given the ability to refine the data source they are accessing.
|
|
39
|
+
- [TabNavigation](web/components/TabNavigation.txt): Organizes content across different screens or data sets.
|
|
40
|
+
- [TabLabel](web/components/TabLabel.txt): A text label component used within tab navigation.
|
|
41
|
+
- [TabIndicator](web/components/TabIndicator.txt): A visual indicator that shows the active tab position.
|
|
42
|
+
- [Stepper](web/components/Stepper.txt): A component that visualizes states within a multi-step process.
|
|
43
|
+
- [SidebarMoreMenu](web/components/SidebarMoreMenu.txt): SidebarMoreMenu provides a dropdown menu for additional navigation options in the Sidebar.
|
|
44
|
+
- [SidebarItem](web/components/SidebarItem.txt): SidebarItem represents a single navigation item within the Sidebar component.
|
|
45
|
+
- [Sidebar](web/components/Sidebar.txt): A vertical navigation menu for accessing different sections.
|
|
46
|
+
- [SegmentedTabs](web/components/SegmentedTabs.txt): Switches between different views of content.
|
|
47
|
+
- [SectionHeader](web/components/SectionHeader.txt): A header component used to organize and label sections of content, with support for icons, descriptions, and additional content.
|
|
48
|
+
- [Pagination](web/components/Pagination.txt): Pagination is used to navigate through a list of items.
|
|
49
|
+
- [PageHeader](web/components/PageHeader.txt): A flexible header component for pages.
|
|
50
|
+
- [PageFooter](web/components/PageFooter.txt): PageFooter is a layout component that provides a consistent footer area for pages, with responsive padding and justification, typically used for action buttons or navigation elements.
|
|
51
|
+
- [NavigationTitleSelect](web/components/NavigationTitleSelect.txt): A select component styled as a navigation title, allowing users to switch between different views or contexts from the header.
|
|
52
|
+
- [NavigationTitle](web/components/NavigationTitle.txt): Navigation Title is used to display the current page or section title in the Navigation Bar.
|
|
53
|
+
- [NavigationBar](web/components/NavigationBar.txt): A universal header component for navigation and wayfinding.
|
|
54
|
+
- [Coachmark](web/components/Coachmark.txt): Coachmark is a flexible, accessible overlay component for onboarding, feature tours, and contextual help. It supports custom content, actions, and media.
|
|
55
|
+
- [SubBrandLogoWordMark](web/components/SubBrandLogoWordMark.txt): Coinbase sub-brand logo wordmarks for specialized branding.
|
|
56
|
+
- [SubBrandLogoMark](web/components/SubBrandLogoMark.txt): Coinbase sub-brand logo marks for specialized branding.
|
|
57
|
+
- [SpotSquare](web/components/SpotSquare.txt): A square-shaped illustration component for displaying spot graphics.
|
|
58
|
+
- [SpotRectangle](web/components/SpotRectangle.txt): A rectangular illustration component for displaying spot graphics.
|
|
59
|
+
- [SpotIcon](web/components/SpotIcon.txt): An icon-sized illustration component for displaying spot graphics.
|
|
60
|
+
- [RemoteImageGroup](web/components/RemoteImageGroup.txt): A component to display a group of RemoteImage components in a stack.
|
|
61
|
+
- [RemoteImage](web/components/RemoteImage.txt): A React component for displaying different types of images, including network images, static resources, temporary local images, and images from local disk, such as the camera roll.
|
|
62
|
+
- [Pictogram](web/components/Pictogram.txt): Displays elevated product icons.
|
|
63
|
+
- [LogoWordMark](web/components/LogoWordMark.txt): The full Coinbase logo with text for branding.
|
|
64
|
+
- [LogoMark](web/components/LogoMark.txt): The Coinbase logo mark for branding.
|
|
65
|
+
- [Icon](web/components/Icon.txt): Displays icons from the icon font.
|
|
66
|
+
- [HeroSquare](web/components/HeroSquare.txt): Displays a square-shaped hero illustration.
|
|
67
|
+
- [CellMedia](web/components/CellMedia.txt): Displays media within cells.
|
|
68
|
+
- [Avatar](web/components/Avatar.txt): Avatar is a visual representation of a user, company, or entity.
|
|
69
|
+
- [VStack](web/components/VStack.txt): A Box with flexDirection="column" set by default.
|
|
70
|
+
- [Spacer](web/components/Spacer.txt): Creates space between elements.
|
|
71
|
+
- [MultiContentModule](web/components/MultiContentModule.txt): A versatile container designed to streamline user experiences across Critical User Journeys. Accommodates a range of content including an illustration, input fields (text inputs, list cells, etc.), and an action button.
|
|
72
|
+
- [HStack](web/components/HStack.txt): A Box with flexDirection="row" set by default.
|
|
73
|
+
- [GridColumn](web/components/GridColumn.txt): Place children of a Grid between specific grid lines.
|
|
74
|
+
- [Grid](web/components/Grid.txt): A Box with extra props to make it easier to use the CSS grid API.
|
|
75
|
+
- [Dropdown](web/components/Dropdown.txt): An overlay that opens and closes.
|
|
76
|
+
- [Divider](web/components/Divider.txt): Separates content into sections.
|
|
77
|
+
- [Collapsible](web/components/Collapsible.txt): A container that can be expanded or collapsed.
|
|
78
|
+
- [Carousel](web/components/Carousel.txt): A flexible carousel component for displaying sequences of content with navigation and pagination options.
|
|
79
|
+
- [ButtonGroup](web/components/ButtonGroup.txt): Groups buttons with consistent spacing.
|
|
80
|
+
- [Box](web/components/Box.txt): A generic container, like a supercharged div.
|
|
81
|
+
- [AccordionItem](web/components/AccordionItem.txt): An individual collapsible item within an Accordion.
|
|
82
|
+
- [Accordion](web/components/Accordion.txt): A collapsible component for displaying auxiliary content.
|
|
83
|
+
- [TileButton](web/components/TileButton.txt): A pressable tile component that displays a pictogram or custom content with a title and optional count. Used for grid-based navigation and quick actions.
|
|
84
|
+
- [TextInput](web/components/TextInput.txt): A control for entering text.
|
|
85
|
+
- [Switch](web/components/Switch.txt): A control for toggling between on and off.
|
|
86
|
+
- [SelectOption](web/components/SelectOption.txt): A single option of a Select component.
|
|
87
|
+
- [SelectChip](web/components/SelectChip.txt): A Chip and Select control for selecting from a list of options.
|
|
88
|
+
- [Select](web/components/Select.txt): A Dropdown control for selecting from a list of options.
|
|
89
|
+
- [SearchInput](web/components/SearchInput.txt): A control for searching a dataset.
|
|
90
|
+
- [RadioGroup](web/components/RadioGroup.txt): Radio is a control component that allows users to select one option from a set.
|
|
91
|
+
- [RadioCell](web/components/RadioCell.txt): A selectable cell that pairs a radio button with a title and description for single-choice selections.
|
|
92
|
+
- [Radio](web/components/Radio.txt): Radio is a control component that allows users to select one option from a set of mutually exclusive options.
|
|
93
|
+
- [Pressable](web/components/Pressable.txt): Extends the Interactable component to add accessibility support for press interactions.
|
|
94
|
+
- [Interactable](web/components/Interactable.txt): A generic component for creating interactable elements. Provides dynamic styling for hovered, pressed, and disabled states.
|
|
95
|
+
- [InputChip](web/components/InputChip.txt): A Chip used for removable selections.
|
|
96
|
+
- [IconButton](web/components/IconButton.txt): A Button with an Icon for content.
|
|
97
|
+
- [ControlGroup](web/components/ControlGroup.txt): A layout component that arranges and manages a group of related controls, such as radio buttons, switches, or checkboxes.
|
|
98
|
+
- [Chip](web/components/Chip.txt): A compact, interactive content element.
|
|
99
|
+
- [CheckboxGroup](web/components/CheckboxGroup.txt): CheckboxGroup is a control component that allows users to select multiple options from a set of choices. It manages the state and layout of multiple checkbox inputs as a cohesive group.
|
|
100
|
+
- [CheckboxCell](web/components/CheckboxCell.txt): A selectable cell that pairs a checkbox with a title and description for multi-choice selections.
|
|
101
|
+
- [Checkbox](web/components/Checkbox.txt): Checkbox is a type of control component that allows user to select one or more options from a set. They can also be used alone to switch between on and off.
|
|
102
|
+
- [Button](web/components/Button.txt): A pressable button element.
|
|
103
|
+
- [AvatarButton](web/components/AvatarButton.txt): A pressable Avatar.
|
|
104
|
+
- [YAxis](web/components/YAxis.txt): A vertical axis component for CartesianChart. Displays tick marks, labels, gridlines, and supports custom formatting, positioning, and data domains.
|
|
105
|
+
- [XAxis](web/components/XAxis.txt): A horizontal axis component for CartesianChart. Displays tick marks, labels, gridlines, and supports custom formatting and data domains.
|
|
106
|
+
- [SparklineInteractiveHeader](web/components/SparklineInteractiveHeader.txt): The SparklineInteractiveHeader is used to display chart information that changes over time
|
|
107
|
+
- [SparklineInteractive](web/components/SparklineInteractive.txt): The SparklineInteractive is used to display a Sparkline that has multiple time periods
|
|
108
|
+
- [SparklineGradient](web/components/SparklineGradient.txt): A small line chart component with gradient fill below the line.
|
|
109
|
+
- [Sparkline](web/components/Sparkline.txt): A small line chart component for displaying data trends.
|
|
110
|
+
- [Scrubber](web/components/Scrubber.txt): An interactive scrubber component for exploring individual data points in charts. Displays values on hover or drag and supports custom labels and formatting.
|
|
111
|
+
- [ReferenceLine](web/components/ReferenceLine.txt): A horizontal or vertical reference line to mark important values on a chart, such as targets, thresholds, or baseline values.
|
|
112
|
+
- [Point](web/components/Point.txt): Visual markers that highlight specific data values on a chart. Points can be customized with different colors, sizes, and interactivity.
|
|
113
|
+
- [PeriodSelector](web/components/PeriodSelector.txt): A selector component for choosing time periods in charts.
|
|
114
|
+
- [LineChart](web/components/LineChart.txt): A flexible line chart component for displaying data trends over time. Supports multiple series, custom curves, areas, scrubbing, and interactive data exploration.
|
|
115
|
+
- [CartesianChart](web/components/CartesianChart.txt): A flexible, low-level chart component for displaying data in an x/y coordinate space. Provides a foundation for building custom chart visualizations with full control over rendering.
|
|
116
|
+
- [BarChart](web/components/BarChart.txt): A bar chart component for comparing values across categories. Supports horizontal and vertical orientations, stacked bars, and grouped series.
|
|
117
|
+
- [AreaChart](web/components/AreaChart.txt): A chart component that displays data as filled areas beneath lines. Ideal for showing cumulative values, stacked data, or emphasizing volume over time.
|
|
118
|
+
- [Spinner](web/components/Spinner.txt): A component that displays a spinning animation.
|
|
119
|
+
- [ProgressCircle](web/components/ProgressCircle.txt): A circular visual indicator of completion progress.
|
|
120
|
+
- [ProgressBarWithFloatLabel](web/components/ProgressBarWithFloatLabel.txt): A ProgressBar with a floating label that moves with progress.
|
|
121
|
+
- [ProgressBarWithFixedLabels](web/components/ProgressBarWithFixedLabels.txt): A ProgressBar with fixed labels at defined positions.
|
|
122
|
+
- [ProgressBar](web/components/ProgressBar.txt): A visual indicator of completion progress.
|
|
123
|
+
- [Fallback](web/components/Fallback.txt): A component that displays a fallback animation.
|
|
124
|
+
- [Banner](web/components/Banner.txt): Displays important messages and actions to users.
|
|
125
|
+
- [TableRow](web/components/TableRow.txt): Defines rows within a Table.
|
|
126
|
+
- [TableHeader](web/components/TableHeader.txt): Defines the header section of Table.
|
|
127
|
+
- [TableFooter](web/components/TableFooter.txt): Defines the footer section of Table.
|
|
128
|
+
- [TableCellFallback](web/components/TableCellFallback.txt): Shows a loading state for Table cells.
|
|
129
|
+
- [TableCell](web/components/TableCell.txt): Defines individual cells within a Table.
|
|
130
|
+
- [TableCaption](web/components/TableCaption.txt): Sets an accessible title or caption for Table.
|
|
131
|
+
- [TableBody](web/components/TableBody.txt): Defines the body section of Table.
|
|
132
|
+
- [Table](web/components/Table.txt): Displays data in rows and columns.
|
|
133
|
+
- [ListCell](web/components/ListCell.txt): A versatile cell component used for displaying content in a list format, supporting various layouts and interactions.
|
|
134
|
+
- [ContentCell](web/components/ContentCell.txt): A versatile cell component for displaying content with optional metadata.
|
|
135
|
+
- [UpsellCard](web/components/UpsellCard.txt): A card component for promoting new features, products, or actions.
|
|
136
|
+
- [NudgeCard](web/components/NudgeCard.txt): A card component designed to encourage users to take essential actions.
|
|
137
|
+
- [FloatingAssetCard](web/components/FloatingAssetCard.txt): A card component for displaying and managing asset holdings.
|
|
138
|
+
- [ContentCardHeader](web/components/ContentCardHeader.txt): A header component for ContentCard.
|
|
139
|
+
- [ContentCardFooter](web/components/ContentCardFooter.txt): A footer component for ContentCard.
|
|
140
|
+
- [ContentCardBody](web/components/ContentCardBody.txt): A main content area component for ContentCard.
|
|
141
|
+
- [ContentCard](web/components/ContentCard.txt): A flexible card component for displaying content.
|
|
142
|
+
- [ContainedAssetCard](web/components/ContainedAssetCard.txt): A card component for displaying and managing asset holdings.
|
|
143
|
+
- [LottieStatusAnimation](web/components/LottieStatusAnimation.txt): A specialized component for displaying trade status animations.
|
|
144
|
+
- [Lottie](web/components/Lottie.txt): Renders After Effects animations as vectors.
|
|
145
|
+
|
|
146
|
+
## Hooks
|
|
147
|
+
|
|
148
|
+
- [useTheme](web/hooks/useTheme.txt): Returns the currently active theme including color schemes, spacing, typography, and other design tokens.
|
|
149
|
+
- [useScrollBlocker](web/hooks/useScrollBlocker.txt): Block and unblock page scrolling.
|
|
150
|
+
- [useOverlayContentContext](web/hooks/useOverlayContentContext.txt): A React context and hook for detecting if components are rendered inside overlay containers like modals, drawers, tours, and trays.
|
|
151
|
+
- [useMediaQuery](web/hooks/useMediaQuery.txt): Subscribes to window.matchMedia changes with SSR support.
|
|
152
|
+
- [useIsoEffect](web/hooks/useIsoEffect.txt): A safe way of calling useLayoutEffect only on the client. Does nothing on the server.
|
|
153
|
+
- [useHasMounted](web/hooks/useHasMounted.txt): Returns a boolean indicating if the component has mounted.
|
|
154
|
+
- [useDimensions](web/hooks/useDimensions.txt): Measures an element's dimensions using ResizeObserver.
|
|
155
|
+
- [useBreakpoints](web/hooks/useBreakpoints.txt): Returns an object with a boolean for each breakpoint of the window. Useful for conditionally rendering components or component trees based on the current window breakpoint.
|