@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.
Files changed (269) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/mcp-docs/mobile/components/Accordion.txt +189 -0
  3. package/mcp-docs/mobile/components/AccordionItem.txt +30 -0
  4. package/mcp-docs/mobile/components/Alert.txt +156 -0
  5. package/mcp-docs/mobile/components/AreaChart.txt +266 -0
  6. package/mcp-docs/mobile/components/Avatar.txt +196 -0
  7. package/mcp-docs/mobile/components/AvatarButton.txt +226 -0
  8. package/mcp-docs/mobile/components/Banner.txt +222 -0
  9. package/mcp-docs/mobile/components/BarChart.txt +816 -0
  10. package/mcp-docs/mobile/components/Box.txt +174 -0
  11. package/mcp-docs/mobile/components/BrowserBar.txt +147 -0
  12. package/mcp-docs/mobile/components/Button.txt +199 -0
  13. package/mcp-docs/mobile/components/ButtonGroup.txt +80 -0
  14. package/mcp-docs/mobile/components/Carousel.txt +1084 -0
  15. package/mcp-docs/mobile/components/CartesianChart.txt +826 -0
  16. package/mcp-docs/mobile/components/CellMedia.txt +71 -0
  17. package/mcp-docs/mobile/components/Checkbox.txt +246 -0
  18. package/mcp-docs/mobile/components/CheckboxCell.txt +202 -0
  19. package/mcp-docs/mobile/components/CheckboxGroup.txt +285 -0
  20. package/mcp-docs/mobile/components/Chip.txt +195 -0
  21. package/mcp-docs/mobile/components/Coachmark.txt +158 -0
  22. package/mcp-docs/mobile/components/Collapsible.txt +105 -0
  23. package/mcp-docs/mobile/components/ContainedAssetCard.txt +135 -0
  24. package/mcp-docs/mobile/components/ContentCard.txt +366 -0
  25. package/mcp-docs/mobile/components/ContentCardBody.txt +136 -0
  26. package/mcp-docs/mobile/components/ContentCardFooter.txt +128 -0
  27. package/mcp-docs/mobile/components/ContentCardHeader.txt +146 -0
  28. package/mcp-docs/mobile/components/ContentCell.txt +227 -0
  29. package/mcp-docs/mobile/components/ControlGroup.txt +444 -0
  30. package/mcp-docs/mobile/components/DatePicker.txt +497 -0
  31. package/mcp-docs/mobile/components/Divider.txt +139 -0
  32. package/mcp-docs/mobile/components/DotCount.txt +146 -0
  33. package/mcp-docs/mobile/components/DotStatusColor.txt +59 -0
  34. package/mcp-docs/mobile/components/DotSymbol.txt +135 -0
  35. package/mcp-docs/mobile/components/Fallback.txt +158 -0
  36. package/mcp-docs/mobile/components/FloatingAssetCard.txt +156 -0
  37. package/mcp-docs/mobile/components/HStack.txt +235 -0
  38. package/mcp-docs/mobile/components/HeroSquare.txt +48 -0
  39. package/mcp-docs/mobile/components/Icon.txt +52 -0
  40. package/mcp-docs/mobile/components/IconButton.txt +269 -0
  41. package/mcp-docs/mobile/components/InputChip.txt +188 -0
  42. package/mcp-docs/mobile/components/Interactable.txt +187 -0
  43. package/mcp-docs/mobile/components/LineChart.txt +1325 -0
  44. package/mcp-docs/mobile/components/Link.txt +292 -0
  45. package/mcp-docs/mobile/components/ListCell.txt +391 -0
  46. package/mcp-docs/mobile/components/LogoMark.txt +85 -0
  47. package/mcp-docs/mobile/components/LogoWordMark.txt +94 -0
  48. package/mcp-docs/mobile/components/Lottie.txt +139 -0
  49. package/mcp-docs/mobile/components/LottieStatusAnimation.txt +47 -0
  50. package/mcp-docs/mobile/components/Modal.txt +84 -0
  51. package/mcp-docs/mobile/components/ModalBody.txt +34 -0
  52. package/mcp-docs/mobile/components/ModalFooter.txt +25 -0
  53. package/mcp-docs/mobile/components/ModalHeader.txt +28 -0
  54. package/mcp-docs/mobile/components/MultiContentModule.txt +380 -0
  55. package/mcp-docs/mobile/components/NavigationTitle.txt +132 -0
  56. package/mcp-docs/mobile/components/NavigationTitleSelect.txt +142 -0
  57. package/mcp-docs/mobile/components/NudgeCard.txt +90 -0
  58. package/mcp-docs/mobile/components/Numpad.txt +341 -0
  59. package/mcp-docs/mobile/components/Overlay.txt +152 -0
  60. package/mcp-docs/mobile/components/PageFooter.txt +161 -0
  61. package/mcp-docs/mobile/components/PageHeader.txt +186 -0
  62. package/mcp-docs/mobile/components/PeriodSelector.txt +408 -0
  63. package/mcp-docs/mobile/components/Pictogram.txt +48 -0
  64. package/mcp-docs/mobile/components/Point.txt +205 -0
  65. package/mcp-docs/mobile/components/PortalProvider.txt +79 -0
  66. package/mcp-docs/mobile/components/Pressable.txt +211 -0
  67. package/mcp-docs/mobile/components/ProgressBar.txt +130 -0
  68. package/mcp-docs/mobile/components/ProgressBarWithFixedLabels.txt +161 -0
  69. package/mcp-docs/mobile/components/ProgressBarWithFloatLabel.txt +138 -0
  70. package/mcp-docs/mobile/components/ProgressCircle.txt +237 -0
  71. package/mcp-docs/mobile/components/Radio.txt +242 -0
  72. package/mcp-docs/mobile/components/RadioCell.txt +202 -0
  73. package/mcp-docs/mobile/components/RadioGroup.txt +282 -0
  74. package/mcp-docs/mobile/components/ReferenceLine.txt +153 -0
  75. package/mcp-docs/mobile/components/RemoteImage.txt +106 -0
  76. package/mcp-docs/mobile/components/RemoteImageGroup.txt +61 -0
  77. package/mcp-docs/mobile/components/RollingNumber.txt +789 -0
  78. package/mcp-docs/mobile/components/Scrubber.txt +204 -0
  79. package/mcp-docs/mobile/components/SearchInput.txt +192 -0
  80. package/mcp-docs/mobile/components/SectionHeader.txt +205 -0
  81. package/mcp-docs/mobile/components/SegmentedTabs.txt +316 -0
  82. package/mcp-docs/mobile/components/Select.txt +212 -0
  83. package/mcp-docs/mobile/components/SelectChip.txt +324 -0
  84. package/mcp-docs/mobile/components/SelectOption.txt +85 -0
  85. package/mcp-docs/mobile/components/SlideButton.txt +331 -0
  86. package/mcp-docs/mobile/components/Spacer.txt +84 -0
  87. package/mcp-docs/mobile/components/Sparkline.txt +123 -0
  88. package/mcp-docs/mobile/components/SparklineGradient.txt +107 -0
  89. package/mcp-docs/mobile/components/SparklineInteractive.txt +157 -0
  90. package/mcp-docs/mobile/components/SparklineInteractiveHeader.txt +73 -0
  91. package/mcp-docs/mobile/components/Spinner.txt +49 -0
  92. package/mcp-docs/mobile/components/SpotIcon.txt +48 -0
  93. package/mcp-docs/mobile/components/SpotRectangle.txt +48 -0
  94. package/mcp-docs/mobile/components/SpotSquare.txt +48 -0
  95. package/mcp-docs/mobile/components/Stepper.txt +528 -0
  96. package/mcp-docs/mobile/components/SubBrandLogoMark.txt +126 -0
  97. package/mcp-docs/mobile/components/SubBrandLogoWordMark.txt +126 -0
  98. package/mcp-docs/mobile/components/Switch.txt +98 -0
  99. package/mcp-docs/mobile/components/TabIndicator.txt +49 -0
  100. package/mcp-docs/mobile/components/TabLabel.txt +154 -0
  101. package/mcp-docs/mobile/components/TabNavigation.txt +147 -0
  102. package/mcp-docs/mobile/components/TabbedChips.txt +143 -0
  103. package/mcp-docs/mobile/components/Tabs.txt +191 -0
  104. package/mcp-docs/mobile/components/Tag.txt +301 -0
  105. package/mcp-docs/mobile/components/Text.txt +212 -0
  106. package/mcp-docs/mobile/components/TextInput.txt +718 -0
  107. package/mcp-docs/mobile/components/ThemeProvider.txt +133 -0
  108. package/mcp-docs/mobile/components/Toast.txt +197 -0
  109. package/mcp-docs/mobile/components/Tooltip.txt +60 -0
  110. package/mcp-docs/mobile/components/TopNavBar.txt +162 -0
  111. package/mcp-docs/mobile/components/Tour.txt +159 -0
  112. package/mcp-docs/mobile/components/Tray.txt +253 -0
  113. package/mcp-docs/mobile/components/UpsellCard.txt +322 -0
  114. package/mcp-docs/mobile/components/VStack.txt +223 -0
  115. package/mcp-docs/mobile/components/XAxis.txt +622 -0
  116. package/mcp-docs/mobile/components/YAxis.txt +568 -0
  117. package/mcp-docs/mobile/getting-started/introduction.txt +99 -0
  118. package/mcp-docs/mobile/getting-started/mcp-server.txt +94 -0
  119. package/mcp-docs/mobile/getting-started/playground.txt +25 -0
  120. package/mcp-docs/mobile/hooks/useDimensions.txt +47 -0
  121. package/mcp-docs/mobile/hooks/useOverlayContentContext.txt +215 -0
  122. package/mcp-docs/mobile/hooks/useTheme.txt +110 -0
  123. package/mcp-docs/mobile/routes.txt +132 -0
  124. package/mcp-docs/web/components/Accordion.txt +190 -0
  125. package/mcp-docs/web/components/AccordionItem.txt +32 -0
  126. package/mcp-docs/web/components/Alert.txt +165 -0
  127. package/mcp-docs/web/components/AreaChart.txt +511 -0
  128. package/mcp-docs/web/components/Avatar.txt +212 -0
  129. package/mcp-docs/web/components/AvatarButton.txt +241 -0
  130. package/mcp-docs/web/components/Banner.txt +227 -0
  131. package/mcp-docs/web/components/BarChart.txt +1268 -0
  132. package/mcp-docs/web/components/Box.txt +176 -0
  133. package/mcp-docs/web/components/Button.txt +213 -0
  134. package/mcp-docs/web/components/ButtonGroup.txt +80 -0
  135. package/mcp-docs/web/components/Calendar.txt +182 -0
  136. package/mcp-docs/web/components/Carousel.txt +1576 -0
  137. package/mcp-docs/web/components/CartesianChart.txt +1045 -0
  138. package/mcp-docs/web/components/CellMedia.txt +57 -0
  139. package/mcp-docs/web/components/Checkbox.txt +189 -0
  140. package/mcp-docs/web/components/CheckboxCell.txt +203 -0
  141. package/mcp-docs/web/components/CheckboxGroup.txt +220 -0
  142. package/mcp-docs/web/components/Chip.txt +197 -0
  143. package/mcp-docs/web/components/Coachmark.txt +189 -0
  144. package/mcp-docs/web/components/Collapsible.txt +120 -0
  145. package/mcp-docs/web/components/ContainedAssetCard.txt +233 -0
  146. package/mcp-docs/web/components/ContentCard.txt +368 -0
  147. package/mcp-docs/web/components/ContentCardBody.txt +138 -0
  148. package/mcp-docs/web/components/ContentCardFooter.txt +130 -0
  149. package/mcp-docs/web/components/ContentCardHeader.txt +148 -0
  150. package/mcp-docs/web/components/ContentCell.txt +220 -0
  151. package/mcp-docs/web/components/ControlGroup.txt +437 -0
  152. package/mcp-docs/web/components/DatePicker.txt +506 -0
  153. package/mcp-docs/web/components/Divider.txt +144 -0
  154. package/mcp-docs/web/components/DotCount.txt +150 -0
  155. package/mcp-docs/web/components/DotStatusColor.txt +59 -0
  156. package/mcp-docs/web/components/DotSymbol.txt +138 -0
  157. package/mcp-docs/web/components/Dropdown.txt +120 -0
  158. package/mcp-docs/web/components/Fallback.txt +164 -0
  159. package/mcp-docs/web/components/FloatingAssetCard.txt +251 -0
  160. package/mcp-docs/web/components/FullscreenAlert.txt +70 -0
  161. package/mcp-docs/web/components/FullscreenModal.txt +146 -0
  162. package/mcp-docs/web/components/FullscreenModalLayout.txt +188 -0
  163. package/mcp-docs/web/components/Grid.txt +237 -0
  164. package/mcp-docs/web/components/GridColumn.txt +210 -0
  165. package/mcp-docs/web/components/HStack.txt +237 -0
  166. package/mcp-docs/web/components/HeroSquare.txt +49 -0
  167. package/mcp-docs/web/components/Icon.txt +146 -0
  168. package/mcp-docs/web/components/IconButton.txt +391 -0
  169. package/mcp-docs/web/components/InputChip.txt +188 -0
  170. package/mcp-docs/web/components/Interactable.txt +194 -0
  171. package/mcp-docs/web/components/LineChart.txt +1577 -0
  172. package/mcp-docs/web/components/Link.txt +244 -0
  173. package/mcp-docs/web/components/ListCell.txt +397 -0
  174. package/mcp-docs/web/components/LogoMark.txt +85 -0
  175. package/mcp-docs/web/components/LogoWordMark.txt +94 -0
  176. package/mcp-docs/web/components/Lottie.txt +158 -0
  177. package/mcp-docs/web/components/LottieStatusAnimation.txt +58 -0
  178. package/mcp-docs/web/components/MediaQueryProvider.txt +109 -0
  179. package/mcp-docs/web/components/Modal.txt +193 -0
  180. package/mcp-docs/web/components/ModalBody.txt +118 -0
  181. package/mcp-docs/web/components/ModalFooter.txt +120 -0
  182. package/mcp-docs/web/components/ModalHeader.txt +124 -0
  183. package/mcp-docs/web/components/MultiContentModule.txt +382 -0
  184. package/mcp-docs/web/components/NavigationBar.txt +103 -0
  185. package/mcp-docs/web/components/NavigationTitle.txt +26 -0
  186. package/mcp-docs/web/components/NavigationTitleSelect.txt +46 -0
  187. package/mcp-docs/web/components/NudgeCard.txt +182 -0
  188. package/mcp-docs/web/components/Overlay.txt +172 -0
  189. package/mcp-docs/web/components/PageFooter.txt +185 -0
  190. package/mcp-docs/web/components/PageHeader.txt +244 -0
  191. package/mcp-docs/web/components/Pagination.txt +500 -0
  192. package/mcp-docs/web/components/PeriodSelector.txt +704 -0
  193. package/mcp-docs/web/components/Pictogram.txt +49 -0
  194. package/mcp-docs/web/components/Point.txt +461 -0
  195. package/mcp-docs/web/components/PortalProvider.txt +77 -0
  196. package/mcp-docs/web/components/Pressable.txt +194 -0
  197. package/mcp-docs/web/components/ProgressBar.txt +164 -0
  198. package/mcp-docs/web/components/ProgressBarWithFixedLabels.txt +213 -0
  199. package/mcp-docs/web/components/ProgressBarWithFloatLabel.txt +182 -0
  200. package/mcp-docs/web/components/ProgressCircle.txt +444 -0
  201. package/mcp-docs/web/components/Radio.txt +220 -0
  202. package/mcp-docs/web/components/RadioCell.txt +216 -0
  203. package/mcp-docs/web/components/RadioGroup.txt +289 -0
  204. package/mcp-docs/web/components/ReferenceLine.txt +452 -0
  205. package/mcp-docs/web/components/RemoteImage.txt +166 -0
  206. package/mcp-docs/web/components/RemoteImageGroup.txt +87 -0
  207. package/mcp-docs/web/components/RollingNumber.txt +1022 -0
  208. package/mcp-docs/web/components/Scrubber.txt +232 -0
  209. package/mcp-docs/web/components/SearchInput.txt +118 -0
  210. package/mcp-docs/web/components/SectionHeader.txt +218 -0
  211. package/mcp-docs/web/components/SegmentedTabs.txt +325 -0
  212. package/mcp-docs/web/components/Select.txt +225 -0
  213. package/mcp-docs/web/components/SelectChip.txt +315 -0
  214. package/mcp-docs/web/components/SelectOption.txt +166 -0
  215. package/mcp-docs/web/components/Sidebar.txt +350 -0
  216. package/mcp-docs/web/components/SidebarItem.txt +132 -0
  217. package/mcp-docs/web/components/SidebarMoreMenu.txt +31 -0
  218. package/mcp-docs/web/components/Spacer.txt +174 -0
  219. package/mcp-docs/web/components/Sparkline.txt +123 -0
  220. package/mcp-docs/web/components/SparklineGradient.txt +107 -0
  221. package/mcp-docs/web/components/SparklineInteractive.txt +154 -0
  222. package/mcp-docs/web/components/SparklineInteractiveHeader.txt +77 -0
  223. package/mcp-docs/web/components/Spinner.txt +129 -0
  224. package/mcp-docs/web/components/SpotIcon.txt +49 -0
  225. package/mcp-docs/web/components/SpotRectangle.txt +49 -0
  226. package/mcp-docs/web/components/SpotSquare.txt +49 -0
  227. package/mcp-docs/web/components/Stepper.txt +683 -0
  228. package/mcp-docs/web/components/SubBrandLogoMark.txt +126 -0
  229. package/mcp-docs/web/components/SubBrandLogoWordMark.txt +126 -0
  230. package/mcp-docs/web/components/Switch.txt +86 -0
  231. package/mcp-docs/web/components/TabIndicator.txt +49 -0
  232. package/mcp-docs/web/components/TabLabel.txt +159 -0
  233. package/mcp-docs/web/components/TabNavigation.txt +160 -0
  234. package/mcp-docs/web/components/TabbedChips.txt +156 -0
  235. package/mcp-docs/web/components/Table.txt +368 -0
  236. package/mcp-docs/web/components/TableBody.txt +84 -0
  237. package/mcp-docs/web/components/TableCaption.txt +103 -0
  238. package/mcp-docs/web/components/TableCell.txt +166 -0
  239. package/mcp-docs/web/components/TableCellFallback.txt +98 -0
  240. package/mcp-docs/web/components/TableFooter.txt +84 -0
  241. package/mcp-docs/web/components/TableHeader.txt +101 -0
  242. package/mcp-docs/web/components/TableRow.txt +141 -0
  243. package/mcp-docs/web/components/Tabs.txt +213 -0
  244. package/mcp-docs/web/components/Tag.txt +305 -0
  245. package/mcp-docs/web/components/Text.txt +233 -0
  246. package/mcp-docs/web/components/TextInput.txt +653 -0
  247. package/mcp-docs/web/components/ThemeProvider.txt +200 -0
  248. package/mcp-docs/web/components/TileButton.txt +159 -0
  249. package/mcp-docs/web/components/Toast.txt +204 -0
  250. package/mcp-docs/web/components/Tooltip.txt +90 -0
  251. package/mcp-docs/web/components/Tour.txt +180 -0
  252. package/mcp-docs/web/components/Tray.txt +289 -0
  253. package/mcp-docs/web/components/UpsellCard.txt +320 -0
  254. package/mcp-docs/web/components/VStack.txt +225 -0
  255. package/mcp-docs/web/components/XAxis.txt +620 -0
  256. package/mcp-docs/web/components/YAxis.txt +549 -0
  257. package/mcp-docs/web/getting-started/introduction.txt +99 -0
  258. package/mcp-docs/web/getting-started/mcp-server.txt +94 -0
  259. package/mcp-docs/web/getting-started/playground.txt +25 -0
  260. package/mcp-docs/web/hooks/useBreakpoints.txt +33 -0
  261. package/mcp-docs/web/hooks/useDimensions.txt +55 -0
  262. package/mcp-docs/web/hooks/useHasMounted.txt +55 -0
  263. package/mcp-docs/web/hooks/useIsoEffect.txt +42 -0
  264. package/mcp-docs/web/hooks/useMediaQuery.txt +94 -0
  265. package/mcp-docs/web/hooks/useOverlayContentContext.txt +217 -0
  266. package/mcp-docs/web/hooks/useScrollBlocker.txt +63 -0
  267. package/mcp-docs/web/hooks/useTheme.txt +105 -0
  268. package/mcp-docs/web/routes.txt +155 -0
  269. package/package.json +1 -1
@@ -0,0 +1,683 @@
1
+ # Stepper
2
+
3
+ A component that visualizes states within a multi-step process.
4
+
5
+ ## Import
6
+
7
+ ```jsx
8
+ import { Stepper } from '@coinbase/cds-web/stepper/Stepper'
9
+ ```
10
+
11
+ ## Props
12
+
13
+ | Prop | Type | Required | Default | Description |
14
+ | --- | --- | --- | --- | --- |
15
+ | `activeStepId` | `string \| null` | Yes | `-` | The id of the current/active step. Set this to null to visualize a completely unfilled/incomplete Stepper. |
16
+ | `direction` | `horizontal \| vertical` | Yes | `-` | The orientation of the stepper. |
17
+ | `steps` | `StepperValue<Metadata>[]` | Yes | `-` | An array of steps to render. |
18
+ | `StepperHeaderComponent` | `StepperHeaderComponent<Metadata> \| null` | No | `-` | An optional component to render in place of the default Header subcomponent. Set to null to render nothing in this slot. |
19
+ | `StepperIconComponent` | `StepperIconComponent<Metadata> \| null` | No | `-` | An optional component to render in place of the default Icon subcomponent. Set to null to render nothing in this slot. |
20
+ | `StepperLabelComponent` | `StepperLabelComponent<Metadata> \| null` | No | `-` | An optional component to render in place of the default Label subcomponent. Set to null to render nothing in this slot. |
21
+ | `StepperProgressComponent` | `StepperProgressComponent<Metadata> \| null` | No | `-` | An optional component to render in place of the default Progress subcomponent. Set to null to render nothing in this slot. |
22
+ | `StepperStepComponent` | `StepperStepComponent<Metadata>` | No | `-` | An optional component to render in place of the default Step subcomponent. |
23
+ | `StepperSubstepContainerComponent` | `StepperSubstepContainerComponent<Metadata> \| null` | No | `-` | An optional component to render in place of the default SubstepContainer subcomponent. |
24
+ | `alignContent` | `ResponsiveProp<center \| normal \| start \| end \| flex-start \| flex-end \| stretch \| baseline \| first baseline \| last baseline \| space-between \| space-around \| space-evenly>` | No | `-` | - |
25
+ | `alignItems` | `ResponsiveProp<center \| normal \| start \| end \| flex-start \| flex-end \| self-start \| self-end \| stretch \| baseline \| first baseline \| last baseline>` | No | `-` | - |
26
+ | `alignSelf` | `ResponsiveProp<center \| normal \| auto \| start \| end \| flex-start \| flex-end \| self-start \| self-end \| stretch \| baseline \| first baseline \| last baseline>` | No | `-` | - |
27
+ | `animate` | `boolean` | No | `true` | Whether to animate the progress spring. |
28
+ | `as` | `div` | No | `-` | - |
29
+ | `aspectRatio` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
30
+ | `background` | `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 | `-` | - |
31
+ | `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
32
+ | `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
33
+ | `borderBottomWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
34
+ | `borderColor` | `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 | `-` | - |
35
+ | `borderEndWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
36
+ | `borderRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
37
+ | `borderStartWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
38
+ | `borderTopLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
39
+ | `borderTopRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
40
+ | `borderTopWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
41
+ | `borderWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
42
+ | `bordered` | `boolean` | No | `-` | Add a border around all sides of the box. |
43
+ | `borderedBottom` | `boolean` | No | `-` | Add a border to the bottom side of the box. |
44
+ | `borderedEnd` | `boolean` | No | `-` | Add a border to the trailing side of the box. |
45
+ | `borderedHorizontal` | `boolean` | No | `-` | Add a border to the leading and trailing sides of the box. |
46
+ | `borderedStart` | `boolean` | No | `-` | Add a border to the leading side of the box. |
47
+ | `borderedTop` | `boolean` | No | `-` | Add a border to the top side of the box. |
48
+ | `borderedVertical` | `boolean` | No | `-` | Add a border to the top and bottom sides of the box. |
49
+ | `bottom` | `ResponsiveProp<Bottom<string \| number>>` | No | `-` | - |
50
+ | `classNames` | `{ root?: string; step?: string \| undefined; substepContainer?: string \| undefined; label?: string \| undefined; progress?: string \| undefined; icon?: string \| undefined; header?: string \| undefined; } \| undefined` | No | `-` | Optional CSS class names for specific child elements of Stepper |
51
+ | `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 | `-` | - |
52
+ | `columnGap` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
53
+ | `complete` | `boolean` | No | `-` | Set this to true to visualize a completely filled/complete Stepper |
54
+ | `completedStepAccessibilityLabel` | `string` | No | `"Complete"` | An optional accessibility label used to announce a step as complete/visited. Useful for providing an internationalized label for this state. |
55
+ | `dangerouslySetBackground` | `string` | No | `-` | - |
56
+ | `disableAnimateOnMount` | `boolean` | No | `-` | Whether to disable the animation on mount. |
57
+ | `display` | `ResponsiveProp<grid \| revert \| none \| block \| inline \| inline-block \| flex \| inline-flex \| inline-grid \| contents \| flow-root \| list-item>` | No | `-` | - |
58
+ | `elevation` | `0 \| 1 \| 2` | No | `-` | - |
59
+ | `flexBasis` | `ResponsiveProp<FlexBasis<string \| number>>` | No | `-` | - |
60
+ | `flexDirection` | `ResponsiveProp<column \| row \| row-reverse \| column-reverse>` | No | `-` | - |
61
+ | `flexGrow` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset` | No | `-` | - |
62
+ | `flexShrink` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset` | No | `-` | - |
63
+ | `flexWrap` | `ResponsiveProp<nowrap \| wrap \| wrap-reverse>` | No | `-` | - |
64
+ | `font` | `ResponsiveProp<FontFamily \| inherit>` | No | `-` | - |
65
+ | `fontFamily` | `ResponsiveProp<FontFamily \| inherit>` | No | `-` | - |
66
+ | `fontSize` | `ResponsiveProp<FontSize \| inherit>` | No | `-` | - |
67
+ | `fontWeight` | `ResponsiveProp<FontWeight \| inherit>` | No | `-` | - |
68
+ | `gap` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
69
+ | `grid` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - |
70
+ | `gridArea` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
71
+ | `gridAutoColumns` | `ResponsiveProp<GridAutoColumns<string \| number>>` | No | `-` | - |
72
+ | `gridAutoFlow` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| row \| column \| dense` | No | `-` | - |
73
+ | `gridAutoRows` | `ResponsiveProp<GridAutoRows<string \| number>>` | No | `-` | - |
74
+ | `gridColumn` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
75
+ | `gridColumnEnd` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
76
+ | `gridColumnStart` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
77
+ | `gridRow` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
78
+ | `gridRowEnd` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
79
+ | `gridRowStart` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
80
+ | `gridTemplate` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - |
81
+ | `gridTemplateAreas` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - |
82
+ | `gridTemplateColumns` | `ResponsiveProp<GridTemplateColumns<string \| number>>` | No | `-` | - |
83
+ | `gridTemplateRows` | `ResponsiveProp<GridTemplateRows<string \| number>>` | No | `-` | - |
84
+ | `height` | `ResponsiveProp<Height<string \| number>>` | No | `-` | - |
85
+ | `justifyContent` | `ResponsiveProp<left \| right \| center \| normal \| start \| end \| flex-start \| flex-end \| stretch \| space-between \| space-around \| space-evenly>` | No | `-` | - |
86
+ | `key` | `Key \| null` | No | `-` | - |
87
+ | `left` | `ResponsiveProp<Left<string \| number>>` | No | `-` | - |
88
+ | `lineHeight` | `ResponsiveProp<LineHeight \| inherit>` | No | `-` | - |
89
+ | `margin` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
90
+ | `marginBottom` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
91
+ | `marginEnd` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
92
+ | `marginStart` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
93
+ | `marginTop` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
94
+ | `marginX` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
95
+ | `marginY` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
96
+ | `maxHeight` | `ResponsiveProp<MaxHeight<string \| number>>` | No | `-` | - |
97
+ | `maxWidth` | `ResponsiveProp<MaxWidth<string \| number>>` | No | `-` | - |
98
+ | `minHeight` | `ResponsiveProp<MinHeight<string \| number>>` | No | `-` | - |
99
+ | `minWidth` | `ResponsiveProp<MinWidth<string \| number>>` | No | `-` | - |
100
+ | `onChange` | `FormEventHandler<HTMLDivElement>` | No | `-` | - |
101
+ | `opacity` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset` | No | `-` | - |
102
+ | `overflow` | `ResponsiveProp<hidden \| auto \| visible \| clip \| scroll>` | No | `-` | - |
103
+ | `padding` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
104
+ | `paddingBottom` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
105
+ | `paddingEnd` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
106
+ | `paddingStart` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
107
+ | `paddingTop` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
108
+ | `paddingX` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
109
+ | `paddingY` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
110
+ | `pin` | `top \| bottom \| left \| right \| all` | No | `-` | Direction in which to absolutely pin the box. |
111
+ | `position` | `ResponsiveProp<fixed \| static \| relative \| absolute \| sticky>` | No | `-` | - |
112
+ | `progressSpringConfig` | `Partial<AnimationConfig>` | No | `-` | The spring config to use for the progress spring. |
113
+ | `ref` | `RefObject<HTMLDivElement> \| ((instance: HTMLDivElement \| null) => void) \| null` | No | `-` | - |
114
+ | `right` | `ResponsiveProp<Right<string \| number>>` | No | `-` | - |
115
+ | `rowGap` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
116
+ | `style` | `CSSProperties` | No | `-` | - |
117
+ | `styles` | `{ root?: CSSProperties; step?: CSSProperties \| undefined; substepContainer?: CSSProperties \| undefined; label?: CSSProperties \| undefined; progress?: CSSProperties \| undefined; icon?: CSSProperties \| undefined; header?: CSSProperties \| undefined; } \| undefined` | No | `-` | Inline styles for specific child elements of Stepper |
118
+ | `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 |
119
+ | `textAlign` | `ResponsiveProp<center \| start \| end \| justify>` | No | `-` | - |
120
+ | `textDecoration` | `ResponsiveProp<none \| underline \| overline \| line-through \| underline overline \| underline double>` | No | `-` | - |
121
+ | `textTransform` | `ResponsiveProp<capitalize \| lowercase \| none \| uppercase>` | No | `-` | - |
122
+ | `top` | `ResponsiveProp<Top<string \| number>>` | No | `-` | - |
123
+ | `transform` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - |
124
+ | `userSelect` | `ResponsiveProp<text \| none \| auto \| all>` | No | `-` | - |
125
+ | `visibility` | `ResponsiveProp<hidden \| visible>` | No | `-` | - |
126
+ | `width` | `ResponsiveProp<Width<string \| number>>` | No | `-` | - |
127
+ | `zIndex` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
128
+
129
+
130
+ ## Examples
131
+
132
+ ### Basic Usage
133
+
134
+ The stepper can be used in two directions: horizontal and vertical.
135
+ Each direction has its own unique default design in order to support different use cases.
136
+
137
+ #### Direction: Horizontal
138
+
139
+ ```tsx live
140
+ function StepperHorizontalBasicExample() {
141
+ const steps = [
142
+ { id: '1', label: 'Account Details' },
143
+ { id: '2', label: 'Personal Information' },
144
+ { id: '3', label: 'Payment Method' },
145
+ { id: '4', label: 'Review & Submit' },
146
+ ];
147
+
148
+ const [stepperState, stepperApi] = useStepper({ steps });
149
+ const [complete, setComplete] = useState(false);
150
+
151
+ const handleNext = () => {
152
+ if (stepperState.activeStepId === '4') {
153
+ setComplete(true);
154
+ } else {
155
+ stepperApi.goNextStep();
156
+ }
157
+ };
158
+
159
+ const handlePrevious = () => {
160
+ setComplete(false);
161
+ stepperApi.goPreviousStep();
162
+ };
163
+
164
+ const handleReset = () => {
165
+ setComplete(false);
166
+ stepperApi.reset();
167
+ };
168
+
169
+ return (
170
+ <VStack gap={2}>
171
+ <Stepper
172
+ direction="horizontal"
173
+ activeStepId={stepperState.activeStepId}
174
+ steps={steps}
175
+ complete={complete}
176
+ />
177
+ <HStack gap={1}>
178
+ <Button
179
+ variant="secondary"
180
+ onClick={handlePrevious}
181
+ disabled={stepperState.activeStepId === '1'}
182
+ >
183
+ Previous
184
+ </Button>
185
+ <Button onClick={handleNext} disabled={complete}>
186
+ {stepperState.activeStepId === '4' ? 'Complete' : 'Next'}
187
+ </Button>
188
+ {complete && <Button onClick={handleReset}>Reset</Button>}
189
+ </HStack>
190
+ </VStack>
191
+ );
192
+ }
193
+ ```
194
+
195
+ #### Direction: Vertical
196
+
197
+ ```tsx live
198
+ function StepperVerticalBasicExample() {
199
+ const steps = [
200
+ { id: '1', label: 'Account Details' },
201
+ { id: '2', label: 'Personal Information' },
202
+ { id: '3', label: 'Payment Method' },
203
+ { id: '4', label: 'Review & Submit' },
204
+ ];
205
+
206
+ const [stepperState, stepperApi] = useStepper({ steps });
207
+ const [complete, setComplete] = useState(false);
208
+
209
+ const handleNext = () => {
210
+ if (stepperState.activeStepId === '4') {
211
+ setComplete(true);
212
+ } else {
213
+ stepperApi.goNextStep();
214
+ }
215
+ };
216
+
217
+ const handlePrevious = () => {
218
+ setComplete(false);
219
+ stepperApi.goPreviousStep();
220
+ };
221
+
222
+ const handleReset = () => {
223
+ setComplete(false);
224
+ stepperApi.reset();
225
+ };
226
+
227
+ return (
228
+ <VStack gap={2}>
229
+ <Stepper
230
+ direction="vertical"
231
+ activeStepId={stepperState.activeStepId}
232
+ steps={steps}
233
+ complete={complete}
234
+ />
235
+ <HStack gap={1}>
236
+ <Button
237
+ variant="secondary"
238
+ onClick={handlePrevious}
239
+ disabled={stepperState.activeStepId === '1'}
240
+ >
241
+ Previous
242
+ </Button>
243
+ <Button onClick={handleNext} disabled={complete}>
244
+ {stepperState.activeStepId === '4' ? 'Complete' : 'Next'}
245
+ </Button>
246
+ {complete && <Button onClick={handleReset}>Reset</Button>}
247
+ </HStack>
248
+ </VStack>
249
+ );
250
+ }
251
+ ```
252
+
253
+ ### Step Config
254
+
255
+ The Stepper is ultimately a visual representation of an array of step objects (i.e. `StepperValue[]`).
256
+ These should be defined outside of the component or memoized prior to rendering a Stepper.
257
+
258
+ Commonly used or required **StepperValue** properties:
259
+
260
+ - `id` - A required, unique identifier for the step.
261
+ - `label` - The label of the step. Optionally exclude this property to hide the label text.
262
+ - `subSteps` - An optional array of sub-steps to nest under the step.
263
+ - `metadata` - An optional object that can be used to store additional data about the step. This is useful when providing your own custom Step components.
264
+
265
+ ### useStepper hook
266
+
267
+ Call the `useStepper` hook to initialize stepper state, access the current state and perform state mutations with its API.
268
+
269
+ The hook returns a tuple where the first member is the current stepper state containing the `activeStepId`.
270
+
271
+ ```tsx
272
+ const [stepperState, stepperApi] = useStepper({ steps });
273
+
274
+ <Stepper direction="horizontal" activeStepId={stepperState.activeStepId} steps={steps} />;
275
+ ```
276
+
277
+ The second member is an API for manipulating the stepper state and includes the following methods:
278
+
279
+ ```tsx
280
+ type StepperApi = {
281
+ /** Update the currently active step to the step with `id`. */
282
+ goToStep: (id: string) => void;
283
+ /** Update the currently active step to the next enabled step in the steps array. Does nothing if the last step is already active. */
284
+ goNextStep: () => void;
285
+ /** Update the currently active step to the previous enabled step in the steps array. Does nothing if the first step is already active. */
286
+ goPreviousStep: () => void;
287
+ /** Reset the active step to the original default active step. */
288
+ reset: () => void;
289
+ };
290
+ ```
291
+
292
+ ### Common Patterns & Use Cases
293
+
294
+ #### Sub-steps
295
+
296
+ A common use-case for the vertical stepper is to visualize long and complex workflows with nested/grouped steps.
297
+ A StepperValue object optionally accepts a `subSteps` property, which is also an array of StepperValue objects.
298
+
299
+ :::danger Avoid Deep Nesting
300
+ Steps can be nested arbritrarily deep, however CDS does not advise nesting deeper than one level.
301
+ :::
302
+
303
+ ```tsx live
304
+ function StepperVerticalSubStepsExample() {
305
+ const steps: StepperValue[] = [
306
+ {
307
+ id: 'first-step',
308
+ label: 'First step',
309
+ },
310
+ {
311
+ id: 'second-step',
312
+ label: 'Second step',
313
+ subSteps: [
314
+ {
315
+ id: 'second-step-substep-one',
316
+ label: 'Substep one',
317
+ },
318
+ {
319
+ id: 'second-step-substep-two',
320
+ label: 'Substep two',
321
+ },
322
+ {
323
+ id: 'second-step-substep-three',
324
+ label: 'Substep three',
325
+ },
326
+ ],
327
+ },
328
+ {
329
+ id: 'final-step',
330
+ label: 'Final step',
331
+ },
332
+ ];
333
+
334
+ const [stepperState, stepperApi] = useStepper({ steps });
335
+ const [complete, setComplete] = useState(false);
336
+
337
+ const handleNext = () => {
338
+ if (stepperState.activeStepId === 'final-step') {
339
+ setComplete(true);
340
+ } else {
341
+ stepperApi.goNextStep();
342
+ }
343
+ };
344
+
345
+ const handlePrevious = () => {
346
+ setComplete(false);
347
+ stepperApi.goPreviousStep();
348
+ };
349
+
350
+ const handleReset = () => {
351
+ setComplete(false);
352
+ stepperApi.reset();
353
+ };
354
+
355
+ return (
356
+ <VStack gap={2}>
357
+ <Stepper
358
+ direction="vertical"
359
+ activeStepId={stepperState.activeStepId}
360
+ steps={steps}
361
+ complete={complete}
362
+ accessibilityLabel="Example Stepper"
363
+ />
364
+ <HStack gap={1}>
365
+ <Button
366
+ variant="secondary"
367
+ onClick={handlePrevious}
368
+ disabled={stepperState.activeStepId === 'first-step'}
369
+ >
370
+ Previous
371
+ </Button>
372
+ <Button onClick={handleNext} disabled={complete}>
373
+ {stepperState.activeStepId === 'final-step' ? 'Complete' : 'Next'}
374
+ </Button>
375
+ {complete && <Button onClick={handleReset}>Reset</Button>}
376
+ </HStack>
377
+ </VStack>
378
+ );
379
+ }
380
+ ```
381
+
382
+ ### Customization Options
383
+
384
+ #### 1. Custom Components
385
+
386
+ Stepper is highly customizable. Use the _Component_ props to customize Stepper with your own React components.
387
+ Components can be set on the Stepper or individually on each step. Custom components set on a specific step will override the same component set on the Stepper.
388
+
389
+ ##### Customizable subcomponents
390
+
391
+ - **StepperHeaderComponent**: Rendered above the entire stepper, helpful to display an overall title or label.
392
+ - **StepperIconComponent**: Useful for showing a small visual with the step to convey state or the intent of the step.
393
+ - **StepperProgressComponent**: Can be used to show an animated marker of progress with each step.
394
+ - **StepperLabelComponent**: A component responsible for rendering the label text or main content associated with the step.
395
+ - **StepperSubstepContainerComponent**: Responsible for rendering the recursive sub-steps of a step.
396
+
397
+ Below are some basic diagrams to help visualize the Stepper anatomy in its two orientations.
398
+
399
+ ```text
400
+ direction: horizontal
401
+ ┌─────────────────────────────────┐
402
+ │ Step (VStack) │
403
+ │ ┌───────────────────────────┐ │
404
+ │ │ HStack │ │
405
+ │ │ ┌──────┐ ┌──────────────┐ │ │
406
+ │ │ │ Icon │ │ Progress │ │ │
407
+ │ │ │ │ │ │ │ │
408
+ │ │ └──────┘ └──────────────┘ │ │
409
+ │ └───────────────────────────┘ │
410
+ │ ┌───────────────────────────┐ │
411
+ │ │ Label │ │
412
+ │ └───────────────────────────┘ │
413
+ │ ┌───────────────────────────┐ │
414
+ │ │ SubstepContainer │ │
415
+ │ │ (recursive) │ │
416
+ │ └───────────────────────────┘ │
417
+ └─────────────────────────────────┘
418
+ ```
419
+
420
+ ```text
421
+ direction: vertical
422
+ ┌─────────────────────────────────────────────────┐
423
+ │ Step (VStack) │
424
+ │ ┌───────────────────────────────────────────┐ │
425
+ │ │ HStack │ │
426
+ │ │ ┌─────────────┐ ┌───────────────────┐ │ │
427
+ │ │ │ VStack │ │ VStack │ │ │
428
+ │ │ │ ┌─────────┐ │ │ ┌───────────────┐ │ │ │
429
+ │ │ │ │ Icon │ │ │ │ Label │ │ │ │
430
+ │ │ │ └─────────┘ │ │ └───────────────┘ │ │ │
431
+ │ │ │ ┌─────────┐ │ │ ┌───────────────┐ │ │ │
432
+ │ │ │ │Progress │ │ │ │ Substeps │ │ │ │
433
+ │ │ │ └─────────┘ │ │ │ (recursive) │ │ │ │
434
+ │ │ └─────────────┘ │ └───────────────┘ │ │ │
435
+ │ └───────────────────────────────────────────┘ │
436
+ └─────────────────────────────────────────────────┘
437
+ ```
438
+
439
+ Each custom component receives a specific set of props that provide access to step data and state.
440
+ When writing your own components, make sure you're getting the most out of Stepper by importing our custom component types like so:
441
+
442
+ ```tsx
443
+ import type { StepperLabelProps } from '@coinbase/cds-web/stepper/Stepper';
444
+
445
+ const TravelBookingLabel = ({
446
+ step,
447
+ active,
448
+ depth,
449
+ }: StepperLabelProps) => {
450
+ const { label, metadata, id } = step;
451
+ const subtitle = metadata?.subtitle as string;
452
+
453
+ if (depth === 0 && metadata) {
454
+ return (
455
+ <ListCell
456
+ description={metadata.name as string}
457
+ detail={metadata.date as string}
458
+ innerSpacing={{ paddingTop: 0, paddingBottom: 0 }}
459
+ maxWidth={350}
460
+ minHeight={undefined}
461
+ outerSpacing={{ paddingTop: 0, paddingBottom: 3, paddingStart: 0, paddingEnd: 0 }}
462
+ subdetail={metadata.time as string}
463
+ title={label}
464
+ />
465
+ );
466
+ }
467
+ ```
468
+
469
+ :::tip Using Default Components
470
+ In many cases, it may be helpful to compose the default Stepper Components within your own. For example, you may want to make the default label pressable.
471
+ All of the default components used by Stepper are exported and available for you to use.
472
+
473
+ ```tsx
474
+ import { DefaultStepperLabelHorizontal } from '@coinbase/cds-web/stepper';
475
+
476
+ <Stepper
477
+ direction="horizontal"
478
+ StepperLabelComponent={(props) => (
479
+ <Pressable onClick={handleStepClick}>
480
+ <DefaultStepperLabelHorizontal {...props} />
481
+ </Pressable>
482
+ )}
483
+ />;
484
+ ```
485
+
486
+ :::
487
+
488
+ ##### Null Components
489
+
490
+ Pass null to any of the component props to completely disable its functionality and hide it from the user.
491
+
492
+ ```tsx live
493
+ function StepperNullComponentsExample() {
494
+ const steps = [
495
+ { id: '1', label: 'Account Details' },
496
+ { id: '2', label: 'Personal Information' },
497
+ { id: '3', label: 'Payment Method' },
498
+ { id: '4', label: 'Review & Submit' },
499
+ ];
500
+
501
+ const [stepperState, stepperApi] = useStepper({ steps });
502
+ const [complete, setComplete] = useState(false);
503
+
504
+ const handleNext = () => {
505
+ if (stepperState.activeStepId === '4') {
506
+ setComplete(true);
507
+ } else {
508
+ stepperApi.goNextStep();
509
+ }
510
+ };
511
+
512
+ const handlePrevious = () => {
513
+ setComplete(false);
514
+ stepperApi.goPreviousStep();
515
+ };
516
+
517
+ return (
518
+ <VStack gap={2}>
519
+ <Stepper
520
+ direction="horizontal"
521
+ StepperLabelComponent={null}
522
+ activeStepId={stepperState.activeStepId}
523
+ steps={steps}
524
+ complete={complete}
525
+ />
526
+ <HStack gap={1}>
527
+ <Button
528
+ variant="secondary"
529
+ onClick={handlePrevious}
530
+ disabled={stepperState.activeStepId === '1'}
531
+ >
532
+ Previous
533
+ </Button>
534
+ <Button onClick={handleNext} disabled={complete}>
535
+ {stepperState.activeStepId === '4' ? 'Complete' : 'Next'}
536
+ </Button>
537
+ </HStack>
538
+ </VStack>
539
+ );
540
+ }
541
+ ```
542
+
543
+ ##### Custom Metadata for Rich Step Data
544
+
545
+ The `metadata` property on each step allows you to store additional data that can be used
546
+ by custom components to create rich, interactive experiences. This is particularly useful
547
+ for complex workflows where each step needs to display contextual information.
548
+
549
+ ```tsx live
550
+ function StepperCustomMetadataExample() {
551
+ const CustomBookingLabel = ({ step, active }) => {
552
+ const { label, metadata } = step;
553
+
554
+ return (
555
+ <ListCell
556
+ title={label}
557
+ description={metadata.name}
558
+ detail={metadata.date}
559
+ subdetail={metadata.time}
560
+ maxWidth={350}
561
+ innerSpacing={{ paddingTop: 0, paddingBottom: 0 }}
562
+ outerSpacing={{ paddingTop: 0, paddingBottom: 3, paddingStart: 0, paddingEnd: 0 }}
563
+ minHeight={undefined}
564
+ />
565
+ );
566
+ };
567
+
568
+ const bookingSteps: StepperValue<{
569
+ name: string;
570
+ date: string;
571
+ time: string;
572
+ }>[] = [
573
+ {
574
+ id: 'book-hotel',
575
+ label: 'Book Hotel',
576
+ metadata: {
577
+ name: 'Marriott Downtown',
578
+ date: '2025-06-13',
579
+ time: '3:00 PM Check-in',
580
+ },
581
+ },
582
+ {
583
+ id: 'book-flight',
584
+ label: 'Book Flight',
585
+ metadata: {
586
+ name: 'Delta Airlines',
587
+ date: '2025-06-13',
588
+ time: '11:03 AM Departure',
589
+ },
590
+ },
591
+ {
592
+ id: 'rental-car',
593
+ label: 'Reserve Rental Car',
594
+ metadata: {
595
+ name: 'Enterprise Rent-A-Car',
596
+ date: '2025-06-14',
597
+ time: '2:24 PM Pickup',
598
+ },
599
+ },
600
+ ];
601
+
602
+ const [stepperState, stepperApi] = useStepper({
603
+ steps: bookingSteps,
604
+ });
605
+
606
+ return (
607
+ <Stepper
608
+ direction="vertical"
609
+ activeStepId={stepperState.activeStepId}
610
+ steps={bookingSteps}
611
+ complete={true}
612
+ StepperLabelComponent={CustomBookingLabel}
613
+ accessibilityLabel="Travel Booking Stepper"
614
+ />
615
+ );
616
+ }
617
+ ```
618
+
619
+ #### 2. style and className APIs
620
+
621
+ The Stepper component provides flexible styling options through the `classNames` and `styles` props.
622
+ Through these props, you can apply CSS classes and inline styles to specific subcomponents of the Stepper; the same components which you can override with the `Component` props.
623
+
624
+ ##### classNames
625
+
626
+ The `classNames` prop allows you to apply CSS classes to specific child elements.
627
+ It accepts an object with the following optional keys:
628
+
629
+ - `header` - Applied to the header component
630
+ - `step` - Applied to each individual step element
631
+ - `substepContainer` - Applied to each substep container element
632
+ - `progress` - Applied to each step progress bar element
633
+ - `label` - Applied to each step label element
634
+ - `icon` - Applied to each step icon element
635
+
636
+ ```tsx
637
+ <Stepper
638
+ classNames={{
639
+ step: 'custom-step',
640
+ label: 'custom-label',
641
+ progress: 'custom-marker',
642
+ }}
643
+ // ... other props
644
+ />
645
+ ```
646
+
647
+ :::tip data-attributes
648
+ Each step element, automatically receives data attributes that reflect its step's current state, making it easy to style different step states with CSS.
649
+
650
+ - `data-step-active=(true|false)` - Indicates when the step is the current, active step:
651
+ - `data-step-complete=(true|false)` - Indicates when the stepper has been completed
652
+ - `data-step-visited=(true|false)` - Indicates when the position of the active step is greater than or equal to the step's position in the stepper
653
+ - `data-step-descendent-active=(true|false)` - Indicates when the active step has a descendent sub-step that is active
654
+
655
+ ```css
656
+ /* Style active step labels */
657
+ [data-step-active='true'] {
658
+ color: var(--color-fgPrimary);
659
+ font-weight: bold;
660
+ }
661
+ ```
662
+
663
+ :::
664
+
665
+ ##### styles
666
+
667
+ The `styles` prop allows you to apply inline styles to specific child elements.
668
+ It follows the same structure as `classNames`:
669
+
670
+ ```tsx
671
+ <Stepper
672
+ direction="horizontal"
673
+ styles={{
674
+ step: { ... },
675
+ substepContainer: { ... },
676
+ label: { ... },
677
+ progress: { ... },
678
+ }}
679
+ // ... other props
680
+ />
681
+ ```
682
+
683
+