Migrating from iTwinUI
Learn how to migrate from iTwinUI to StrataKit
This guide provides the necessary steps for migrating from iTwinUI to StrataKit.
Migration steps
Section titled “Migration steps”-
Set up StrataKit
Follow the set up StrataKit guide to install the necessary dependencies and set up your project.
-
Enable the StrataKit theme bridge
Pass the StrataKit Root into the
asprop of the iTwinUI ThemeProvider to render a single DOM element.<ThemeProvidertheme={theme}as={Root}>{/* … */}</ThemeProvider>Specify the
Rootprops directly on theThemeProvidercomponent.<ThemeProvidertheme={theme}as={Root}colorScheme={theme}>{/* … */}</ThemeProvider>Finally, activate the
themeBridgefuture flag.<ThemeProvidertheme={theme}as={Root}colorScheme={theme}future={{ themeBridge: true }} // or future={true}>{/* … */}</ThemeProvider> -
Replace
@itwin/itwinui-icons-reactwith@stratakit/iconsReplace the usage of iTwinUI icons from
@itwin/itwinui-icons-reactwith their StrataKit counterparts. Refer to the use StrataKit icons section below for the full icon mapping.import { SvgAdd } from '@itwin/itwinui-icons-react';<SvgAdd />import { Icon } from "@stratakit/mui";import { svgAdd } from "@stratakit/icons/add";<Icon href={svgAdd} />Once all usage of
@itwin/itwinui-icons-reacthas been replaced, it is safe to remove the dependency.Terminal window npm uninstall @itwin/itwinui-icons-react -
Replace usage of
@itwin/itwinui-reactReplace the usage of components from
@itwin/itwinui-reactwith their StrataKit counterparts. Some components are provided by@mui/material, while others live in@stratakit/structures. Refer to the use StrataKit components section below for the full component mapping.Once all usage of
@itwin/itwinui-reacthas been replaced, it is safe to remove the dependency.Terminal window npm uninstall @itwin/itwinui-react
Visual transition
Section titled “Visual transition”By default, StrataKit uses its preferred “aurora” green accent color. Some legacy applications rely on a blue accent color, especially when parts of the UI are not implemented with up-to-date iTwinUI components. In these cases, the aurora accent color can clash with the existing UI or require significant adjustments to it.
To ease the visual transition, use StrataKit’s “cobalt” accent color, which is designed for better compatibility with iTwinUI’s color palette. Set the unstable_accentColor prop on the Root component to apply the accent color to all StrataKit components.
<ThemeProvider theme={theme} as={Root} colorScheme={theme} future={true} unstable_accentColor="cobalt"> {/* … */}</ThemeProvider>Once the visual transition is complete, remove the unstable_accentColor prop to continue using StrataKit’s preferred accent color.
Use StrataKit icons
Section titled “Use StrataKit icons”Replace iTwinUI icons with their StrataKit counterparts using the mapping below.
| iTwinUI icon | StrataKit icon |
|---|---|
| 2d | 2d |
| 3d | 3d |
| activity | activity |
| add-circular | add-circle |
| add | add |
| airplane | airplane |
| align-bottom | align-bottom |
| align-center-horizontal | align-center-horizontal |
| align-center-vertical | align-center-vertical |
| align-left | align-left |
| align-right | align-right |
| align-top | align-top |
| android | brand-android |
| annotation | annotation |
| apple | brand-apple |
| archive | archive |
| arrow-down | arrow-down |
| arrow-left | arrow-left |
| arrow-right | arrow-right |
| arrow-up | arrow-up |
| attach | attach |
| automatic | automagic |
| away | user-away |
| basket | basket |
| bentley-systems | brand-bentley-systems |
| blank | - |
| bolt | bolt |
| bookmark | bookmark |
| calendar | calendar |
| camera-animation-disabled | camera-video-disabled |
| camera-animation | camera-video |
| camera-retake | camera-retake |
| camera | camera |
| caret-down-small | caret-down |
| caret-down | caret-down |
| caret-left-small | caret-left |
| caret-left | caret-left |
| caret-right-small | caret-right |
| caret-right | caret-right |
| caret-up-small | caret-up |
| caret-up | caret-up |
| charts | chart-bar |
| chat | chat |
| checkbox-deselect | checkbox-deselect |
| checkbox-select | checkbox-select |
| checkmark-small | checkmark |
| checkmark | checkmark |
| chevron-down | chevron-down |
| chevron-left-double | chevron-left-double |
| chevron-left | chevron-left |
| chevron-right-double | chevron-right-double |
| chevron-right-small | chevron-right |
| chevron-right | chevron-right |
| chevron-up | chevron-up |
| circle | circle |
| clash | clash |
| clipboard | clipboard |
| clock | clock |
| close-circular | dismiss-circle |
| close-small | dismiss |
| close | dismiss |
| cloud-download | cloud-download |
| cloud-upload | cloud-upload |
| cloud | cloud |
| collapse-all | collapse-rows-all |
| collapse | collapse-rows |
| column-manager | column-manage |
| compare | compare |
| computer | computer |
| configuration | configuration |
| copy | copy |
| crop | crop |
| crown | crown |
| cursor-click | cursor-click |
| cursor | cursor |
| cut | cut |
| database | database |
| delete | delete |
| details | details |
| developer | developer |
| disconnect | disconnect |
| distribute-bottom | - |
| distribute-center-horizontal | distribute-center-horizontal |
| distribute-center-vertical | distribute-center-vertical |
| distribute-left | distribute-left |
| distribute-right | distribute-right |
| distribute-top | distribute-top |
| dock-bottom | dock-bottom |
| dock-left | dock-left |
| dock-right | dock-right |
| dock-top | dock-top |
| document-lock | document-locked |
| document-reference | document-reference |
| document | document-blank |
| documentation | documentation |
| download | download |
| drag-handle-vertical | drag-handle-vertical |
| drag-handle | drag-handle-horizontal |
| draw | draw |
| duplicate | duplicate |
| edit-all | edit-all |
| edit | edit |
| ellipse | ellipse |
| email-at | email-at |
| exit | exit |
| expand-all | expand-rows-all |
| expand | expand-rows |
| export | export |
| eyedropper-drop | eyedropper-drop |
| eyedropper-filled | eyedropper-filled |
| eyedropper | eyedropper |
| fast-backward | fast-backward |
| fast-forward | fast-forward |
| feedback | feedback |
| filter-hollow | filter |
| filter | filter |
| find | find |
| fire-extinguisher | fire-extinguisher |
| fit-to-view | fit-to-view |
| flag | flag |
| folder-add | folder-add |
| folder-browse | folder-browse |
| folder-chevron-down | folder-chevron-down |
| folder-chevron-up | folder-chevron-up |
| folder-export | folder-export |
| folder-import | folder-import |
| folder-lock | folder-lock |
| folder-minimize | - |
| folder-opened | folder-open |
| folder-remove | folder-remove |
| folder-shortcut | folder-shortcut |
| folder | folder |
| font-bold | font-bold |
| font-color | font-color |
| font-italic | font-italic |
| font-size | font-size |
| forms | form |
| frame-backward | frame-backward |
| frame-forward | frame-forward |
| function | function |
| geosearch | geolocate |
| gesture-one-finger-drag | gesture-one-finger-drag |
| gesture-one-finger-tap-double | gesture-one-finger-double-tap |
| gesture-one-finger-tap | gesture-one-finger-tap |
| gesture-pinch | gesture-pinch |
| gesture-touch | gesture-touch |
| gesture-two-finger-drag | gesture-two-finger-drag |
| gesture-two-finger-tap | gesture-two-finger-tap |
| gesture-two-finger | gesture-two-finger |
| globe | globe |
| go-to-end | go-to-end |
| go-to-start | go-to-start |
| graph-bar | chart-bar |
| graph-pie-chart | chart-pie |
| graph-scatter-chart | graph-scatter-chart |
| graph | chart-line |
| grid | grid |
| group-ungroup | ungroup |
| group | group |
| hand | hand |
| heart | heart |
| help-circular-hollow | help |
| help-circular | help |
| hide-manually-suppressed | - |
| hide-rule-suppressed | - |
| hierarchy-tree | hierarchy-tree |
| history | history |
| home | home |
| hourglass | hourglass |
| i-beam | i-beam |
| image-frame | image |
| image | image |
| imodel-hollow | imodel |
| imodel | imodel |
| import | import |
| important-small | important |
| important-very | important-very |
| important | important |
| info-circular-hollow | info |
| info-circular | info |
| info | info |
| install | install |
| isolate | isolate |
| issue-report | issue |
| item | - |
| itwin | itwin |
| key | key |
| label | label |
| layers | layers |
| lightbulb-hollow | lightbulb |
| lightbulb | lightbulb |
| line | line |
| link | link |
| list | list |
| location | location |
| lock-unlocked | lock-unlocked |
| lock | lock |
| loop | loop |
| maintenance | maintenance |
| manager | manager |
| map-info | map-info |
| map | map |
| measure | measure |
| menu | menu |
| merge | merge |
| minimize | minus |
| model | model |
| moon | moon |
| more-circular | more-horizontal-circle |
| more-small | more-horizontal-circle |
| more-vertical-circular | more-vertical-circle |
| more-vertical-small | more-vertical-circle |
| more-vertical | more-vertical |
| more | more-horizontal |
| mouse-click-left | mouse-click-left |
| mouse-click-right | mouse-click-right |
| mouse-click-wheel | mouse-click-middle |
| mouse-click | mouse-click |
| move | move |
| named-version-add | add |
| network | network |
| new | new |
| news | news |
| notification-settings | notifications-settings |
| notification | notifications |
| object-move | object-move |
| object-rotate | object-rotate |
| object-scale | object-scale |
| offline | cloud-offline |
| paintbrush | paint-brush |
| palette | palette |
| panorama-model | panorama-model |
| panorama | panorama |
| paste-hollow | clipboard |
| paste | clipboard |
| pause-circular | pause-circle |
| pause | pause |
| perspective | perspective |
| pin-hollow | pin |
| pin-unpin | pin-unpin |
| pin | pin |
| placeholder | placeholder |
| play-backward | play-backward |
| play-circular | play-circle |
| play | play |
| plugin | plugins |
| polygon | polygon |
| print-preview | print-preview |
| print-settings | print-settings |
| process | process |
| progress-backward-circular | chevron-left |
| progress-backward | chevron-left |
| progress-forward-circular | chevron-right |
| progress-forward | chevron-right |
| project | project |
| properties-list | settings |
| properties | properties |
| puzzle | puzzle |
| re-center | re-center |
| read-only | read-only |
| reality-mesh | reality-mesh |
| record | record |
| records | records |
| rectangle | rectangle |
| redo | redo |
| refresh | refresh |
| remove | dismiss |
| rename | rename |
| reorder | reorder |
| replace | replace |
| reports | report |
| road | road |
| rotate-left | rotate-left |
| rotate-right | rotate-right |
| save-as | save-as |
| save-settings | save-settings |
| save-update | - |
| save | save |
| saved-view | saved-views |
| scale | object-scale |
| screenshare-stop | screenshare-stop |
| screenshare | screenshare |
| script-run | script-run |
| script-status | script-status |
| script | script |
| search | search |
| selection-clear | selection-clear |
| selection | selection |
| send | send |
| settings | settings |
| setup | setup |
| share | share |
| smartphone | smartphone |
| smiley-happy-hollow | smiley-happy |
| smiley-happy-very-hollow | smiley-very-happy |
| smiley-happy-very | smiley-very-happy |
| smiley-happy | smiley-happy |
| smiley-neutral-hollow | smiley-neutral |
| smiley-neutral | smiley-neutral |
| smiley-sad-hollow | smiley-sad |
| smiley-sad-very-hollow | smiley-very-sad |
| smiley-sad-very | smiley-very-sad |
| smiley-sad | smiley-sad |
| sort-down | sort-ascending |
| sort-menu | sorting |
| sort-up | sort-descending |
| sound-loud | sound-loud |
| sound-mute | sound-mute |
| sound-quiet | sound-quiet |
| spin | spin |
| star-hollow | star |
| star | star |
| status-draft | status-draft |
| status-error-hollow | status-error |
| status-error | status-error |
| status-pending-hollow | status-pending |
| status-pending | status-pending |
| status-rejected-hollow | status-rejected |
| status-rejected | status-rejected |
| status-running | status-running |
| status-success-hollow | status-success |
| status-success | status-success |
| status-update | status-update |
| status-warning | status-warning |
| stop-circular | stop-circle |
| stop | stop |
| sun | sun |
| suppress-manually | suppress |
| swap | swap |
| sync-disabled | cloud-offline |
| sync | loop |
| table-of-contents | table-of-contents |
| table | table |
| tag | tag |
| technical-preview-badge-bw | technical-preview-badge |
| technical-preview-bw | technical-preview |
| technical-preview-mini-bw | technical-preview |
| text-align-center | text-align-center |
| text-align-justify | text-align-justify |
| text-align-left | text-align-left |
| text-align-right | text-align-right |
| text-medium | text |
| text-small | text |
| text | text |
| thumbnails | - |
| timer | timer |
| transparency | transparency |
| tree-navigate-down | - |
| tree-navigate-up | - |
| underline | font-underline |
| undo | undo |
| unlink | unlink |
| upgrade | update |
| upload-to-cloud | cloud-upload |
| upload | upload |
| user-add | user-add |
| user-restricted | user-restricted |
| user | user |
| users | users |
| validate | validate |
| visibility-emphasize | visibility-emphasis |
| visibility-half | visibility-partial |
| visibility-hide | visibility-hide |
| visibility-show | visibility-show |
| walk | walk |
| wifi-disabled | wifi-disabled |
| wifi | wifi |
| window-add | window-add |
| window-area | window-area |
| window-backward | window-back |
| window-collapse | window-collapse |
| window-forward | window-forward |
| window-full-screen | window-expand |
| window-maximize | window-maximize |
| window-minimize | window-minimize |
| window-popout | window-popout |
| window-settings | window-settings |
| window-split-horizontal | window-split-horizontal |
| window-split-vertical | window-split-vertical |
| window-zoom-in | window-zoom-in |
| window-zoom-out | window-zoom-out |
| window | window |
| windows | brand-windows |
| zoom-in-circular | zoom-in-circle |
| zoom-in | zoom-in-magnifier |
| zoom-out-circular | zoom-out-circle |
| zoom-out | zoom-out-magnifier |
| zoom-search | search |
Use StrataKit components
Section titled “Use StrataKit components”Replace iTwinUI components component usage with their MUI counterparts, StrataKit counterparts, or code suggestions.
Replace the Alert component from @itwin/itwinui-react with the Alert component from @mui/material. See Alert examples for reference.
- Replace
statuswith theseverityprop. - MUI
Alerthas no equivalent to iTwinUIAlert’sstickyprop. Set the CSSpositionproperty tostickyinstead.
Anchor
Section titled “Anchor”Replace the Anchor component from @itwin/itwinui-react with the Link component from @mui/material. See Link examples for reference.
- Replace
externalby following the externalLinkexample. - Remove
underline. StrataKit handles underlines automatically.
Avatar
Section titled “Avatar”Replace the Avatar component from @itwin/itwinui-react with the Avatar component from @mui/material. See Avatar examples for reference.
- Replace
sizewith the CSSblock-sizeandinline-sizeproperties. - Replace
statusby wrapping theAvatarinBadge. - MUI
Avatardoes not assign background colors automatically like iTwinUI.
AvatarGroup
Section titled “AvatarGroup”Replace the AvatarGroup component from @itwin/itwinui-react with the AvatarGroup component from @mui/material. See AvatarGroup examples for reference.
- MUI
AvatarGrouphas no equivalent to iTwinUIAvatarGroup’sanimatedprop. - Replace overflow handling with the
renderSurplusprop.
Replace the Badge component from @itwin/itwinui-react with the Badge component from @mui/material. See Badge examples for reference.
- Replace status background colors with the
colorprop. - Replace soft background colors by omitting the
colorprop. StrataKit does not provide separate non-status badge colors.
Blockquote
Section titled “Blockquote”Replace the Blockquote component from @itwin/itwinui-react with the native <blockquote> element.
Breadcrumbs
Section titled “Breadcrumbs”Replace the Breadcrumbs component from @itwin/itwinui-react with the Breadcrumbs component from @mui/material. See Breadcrumbs examples for reference.
- Replace iTwinUI
Breadcrumbs’ truncation by following the Breadcrumbs truncation example.
Button
Section titled “Button”Replace the Button component from @itwin/itwinui-react with the Button component from @mui/material. See Button examples for reference.
- Replace
styleType="cta"withcolor="primary". - Replace
styleType="borderless"withvariant="text". - Replace
styleType="high-visibility"with the defaultButton. If it is the main action of a dialog or page, usecolor="primary". - The
sizeandloadingprops require no changes.
ButtonGroup
Section titled “ButtonGroup”Replace the ButtonGroup component from @itwin/itwinui-react with the ButtonGroup component from @mui/material. See ButtonGroup examples for reference.
- Replace
<ButtonGroup role="toolbar">withToolbarfrom@stratakit/structuresfor grouped commands, or with MUIToggleButtonGroupwhen the buttons select an option. - Replace a
ButtonGroupthat combines buttons with anInputwithTextFieldand itsstartAdornmentorendAdornmentprops.
Carousel
Section titled “Carousel”There is no direct replacement for the Carousel component from @itwin/itwinui-react. StrataKit discourages the use of carousels.
Checkbox
Section titled “Checkbox”Replace the Checkbox component from @itwin/itwinui-react with the Checkbox component from @mui/material. See Checkbox examples for reference.
- Replace
status="negative"witherroron a wrappingFormControland aFormHelperTextmessage. See the Checkbox error example. - MUI
Checkboxhas no equivalent to iTwinUICheckbox’sloadingprop. RenderCircularProgressin place of the checkbox while loading. - MUI
Checkboxhas no equivalent to iTwinUICheckbox’svisibilityprop.
Replace the Code component from @itwin/itwinui-react with the Typography component from @mui/material rendered as <code>. See Typography examples for reference.
ColorPicker
Section titled “ColorPicker”Replace the ColorPicker component from @itwin/itwinui-react with the color picker composite component.
- For a limited set of colors, use the
Selectcomponent from@mui/materialinstead.
ComboBox
Section titled “ComboBox”Replace the ComboBox component from @itwin/itwinui-react with the Autocomplete component from @mui/material. See Autocomplete examples for reference.
- Replace
multiplewith MUIAutocomplete’smultipleprop.
DatePicker
Section titled “DatePicker”Replace the DatePicker component from @itwin/itwinui-react with the DatePicker component from @mui/x-date-pickers. See DatePicker examples for reference.
- Replace
enableRangeSelectwith twoDatePickers, one for the start date and one for the end date. - For a standalone calendar, use the
DateCalendarcomponent from@mui/x-date-pickers.
Dialog
Section titled “Dialog”Replace the Dialog component from @itwin/itwinui-react with the Dialog component from @mui/material. See Dialog examples for reference.
- MUI
Dialoghas no equivalent to iTwinUIDialog’sisDismissibleprop. Add a closeIconButtonwhen dismissal is allowed; otherwise, omit it, setdisableEscapeKeyDown, and ignore"backdropClick"inonClose. - MUI
Dialoghas no equivalent to iTwinUIDialog’sisDraggableprop. Implement dragging withreact-draggableor another third-party library. - MUI
Dialoghas no equivalent to iTwinUIDialog’sisResizableprop. To allow resizing, apply CSSresize: bothandoverflow: autoto the dialog paper usingslotProps.paper.className, and set appropriate size limits. - Replace
styleType="fullPage"with thefullScreenprop. - MUI
Dialoghas no equivalent to iTwinUIDialog’splacementprop. Position the dialog paper with CSSposition: absoluteinstead. - MUI
Dialoghas no equivalent to iTwinUIDialog’s non-modal behavior. See MUI’s non-modal dialog guidance.
Divider
Section titled “Divider”Replace the Divider component from @itwin/itwinui-react with the Divider component from @mui/material. See Divider examples for reference.
DropdownButton
Section titled “DropdownButton”Replace the DropdownButton component from @itwin/itwinui-react with a Button that opens a Menu, both from @mui/material. See Menu examples for reference.
DropdownMenu
Section titled “DropdownMenu”Replace the DropdownMenu component from @itwin/itwinui-react with the Menu component from @mui/material. See Menu examples for reference.
- Replace a start icon with an
IconinsideListItemIconbefore the text inMenuItem. - Replace an end icon with an
IconafterListItemTextinMenuItem, aligned to the end. - Replace a sublabel with
ListItemText’sprimaryandsecondaryprops insideMenuItem. - MUI
MenuItemhas no equivalent to iTwinUIMenuItem’s submenu support. - Replace
MenuDividerwith aDividerbetweenMenuItemcomponents.
ExpandableBlock
Section titled “ExpandableBlock”Replace the ExpandableBlock component from @itwin/itwinui-react with the Accordion component from @mui/material. See Accordion examples for reference.
- Replace a caption with two
Typographyelements insideAccordionSummary. - Replace an accordion of blocks with adjacent
Accordioncomponents. If only one should be open at a time, control theirexpandedprops with shared state. - MUI
Accordionhas no equivalent to iTwinUIExpandableBlock’sstatusprop. Place a statusIconinAccordionSummaryinstead. - MUI
Accordionhas no equivalent to iTwinUIExpandableBlock’ssizeprop. Its default size matches iTwinUI’ssize="small". - Replace
styleType="borderless"withvariant="elevation".
Fieldset
Section titled “Fieldset”Replace the Fieldset component from @itwin/itwinui-react with the native <fieldset> element.
FileUpload
Section titled “FileUpload”Replace the FileUpload component from @itwin/itwinui-react with the file selection composite component.
Replace the Flex component from @itwin/itwinui-react with the Stack component from @mui/material.
- Replace
gapprop with thespacingprop. Convert the value to a number representing the distance in StrataKit spacing units. - Replace the
flexDirectionproperty with thedirectionprop. - Remove
alignItems,justifyContent, andflexWrap. Apply CSS styling that sets those properties.
Footer
Section titled “Footer”Replace the Footer component from @itwin/itwinui-react with the footer composite component.
Header
Section titled “Header”Replace the Header component from @itwin/itwinui-react with the header composite component.
IconButton
Section titled “IconButton”Replace the IconButton component from @itwin/itwinui-react with the IconButton component from @mui/material. See IconButton examples for reference.
- Replace
styleType="cta"withcolor="primary"andvariant="outlined". - Replace
styleType="high-visibility"withvariant="outlined". If it is the key action, addcolor="primary". - Replace
styleType="default"withvariant="outlined". - Remove
styleType="borderless"; the default MUIIconButtonappearance is borderless.
IdeasButton
Section titled “IdeasButton”Replace the IdeasButton component from @itwin/itwinui-react with the Button component from @mui/material, positioned with CSS. See Button examples for reference.
InformationPanel
Section titled “InformationPanel”Replace the InformationPanel component from @itwin/itwinui-react with the Drawer component from @mui/material. See Drawer examples for reference.
- Replace
orientation="vertical"withanchor="right", andorientation="horizontal"withanchor="bottom". - MUI
Drawerhas no equivalent to iTwinUIInformationPanel’sresizableprop. To allow resizing, add a drag handle to the drawer paper and manage its width or height with appropriate limits.
Replace the Input component from @itwin/itwinui-react with the Input or TextField components from @mui/material. See TextField examples for reference.
- Replace
sizewithsize="small"or the defaultsize="medium". There is no equivalent tosize="large". - Replace
status="negative"withTextField’serrorandhelperTextprops. There is no equivalent for"positive"or"warning". - Replace inline labels by arranging
FormLabelandInputside by side with CSS. StrataKitTextFielddisplays its label above the input. - Replace an input paired with a button with an
IconButtoninsideInputAdornmentinTextField’sslotProps.input.endAdornment.
InputGrid
Section titled “InputGrid”There is no direct replacement for the InputGrid component from @itwin/itwinui-react, which groups a label, field, and message. Compose an equivalent layout from MUI components instead.
- For a text input, use
TextFieldwithlabelandhelperText, such as<TextField label="Name" helperText="Message" />. - For other fields, compose
FormControlwith the appropriate label and input, plusFormHelperTextfor the message. UseInputLabelwith MUISelectandFormLabelwith fields that need a separate label. - To preserve iTwinUI’s
labelPlacement="inline", place the label and input side by side usingStackor custom layout. NeitherTextFieldnorFormControlprovides this layout by default.
InputGroup
Section titled “InputGroup”Replace the InputGroup component from @itwin/itwinui-react with the FormControl component from @mui/material.
InputWithDecorations
Section titled “InputWithDecorations”Replace the InputWithDecorations component from @itwin/itwinui-react with the Input or TextField components from @mui/material. Use InputAdornment for content alongside the input, passed through slotProps.input on TextField or directly as props on Input.
- Replace
InputWithDecorations.Iconwith anIconinsideInputAdornmentinstartAdornmentorendAdornment. - Replace
InputWithDecorations.Buttonwith anIconButtoninside an endInputAdornment. Additional text, dividers, and actions can be composed in the same adornment with custom layout styling. - Replace
isDisabledwithdisabledon the input. Disable interactive adornments separately, since disabling the input does not disable their buttons.
Replace the Kbd component from @itwin/itwinui-react with the Typography component from @mui/material rendered as <kbd>. See Typography examples for reference.
Replace the Label component from @itwin/itwinui-react with the FormLabel component from @mui/material.
LinkAction
Section titled “LinkAction”There is no direct replacement for the LinkBox and LinkAction components from @itwin/itwinui-react. Use the pseudo-content trick to make the entire element clickable.
Replace the List component from @itwin/itwinui-react with the List component from @mui/material. See List examples for reference.
- Replace
ListItemwith MUIListItem. Replace start icons with anIconinsideListItemIcon, and end icons with anIconafterListItemText, aligned to the end. - Replace
ListItem.ContentandListItem.DescriptionwithListItemText’sprimaryandsecondaryprops. - MUI
ListItemhas no equivalent to iTwinUIListItem’ssize="large"prop. Use CSS to keep rows without descriptions the same height when needed. - Replace
actionableandListItem.ActionwithListItemButtoninsideListItem. Render it as a link for navigation or keep it as a button for an in-page action. Put independent controls inListItem’ssecondaryActionprop rather than inside the primary action. - Replace
activeanddisabledwithListItemButton’sselectedanddisabledprops.selectedis visual only; add semantics separately, such asaria-currentfor navigation orrole="option"witharia-selectedfor a listbox.
MiddleTextTruncation
Section titled “MiddleTextTruncation”There is no direct replacement for the MiddleTextTruncation component from @itwin/itwinui-react. Truncated text can make content harder to discover and read, particularly for people with low vision or cognitive disabilities. See The accessibility pitfalls of truncating text for more detail. Prefer wrapping text onto multiple lines or allowing horizontal scrolling.
NonIdealState
Section titled “NonIdealState”There is no direct replacement for the NonIdealState component from @itwin/itwinui-react. Compose an equivalent layout from MUI components instead.
- Replace
headingwithTypographyrendered as the appropriate heading level. - Replace
svgwith an image or illustration appropriate to the error. - Replace
actionswithButtonorLinkcomponents.
NotificationMarker
Section titled “NotificationMarker”Replace the NotificationMarker component from @itwin/itwinui-react with the Badge component from @mui/material. See Badge examples for reference.
- Replace the wrapped content by wrapping the same icon or control in
Badge. Setvariant="dot"for a direct replacement, orvariant="standard"to show a count. - Replace
enabled={false}withinvisible. - Replace
statuswith thecolorprop. There is no equivalent forstatus="white". - MUI
Badgehas no equivalent to iTwinUINotificationMarker’spulsingprop.
Overlay
Section titled “Overlay”Replace the Overlay component from @itwin/itwinui-react with the Backdrop component from @mui/material. See Backdrop examples for reference.
- Replace
contentwithBackdrop’s children, such as a loading message orCircularProgress. Control visibility with theopenprop. - iTwinUI
Overlayblurs its children and makes them inert. MUIBackdroponly covers them visually. Setinerton the underlying content while the backdrop is shown, keep the backdrop outside the inert subtree, and add a blur with CSS if needed. - To cover only a section, place the backdrop in a positioned wrapper and position it with CSS. MUI
Backdropis fixed to the viewport by default. - For a loading state, describe it in accessible text and set
aria-busyon the affected region. Use aDialoginstead if the foreground requires modal interaction and focus management.
Panels
Section titled “Panels”There is no direct replacement for the Panels component from @itwin/itwinui-react. iTwinUI marked Panels as unstable, so StrataKit does not currently provide a supported equivalent.
Popover
Section titled “Popover”Replace the Popover component from @itwin/itwinui-react with the Popover component from @mui/material. See Popover examples for reference.
- MUI
Popoverdoes not wrap its trigger. Render the trigger button separately, store it asanchorEl, and toggleopenfrom itsonClick. Setaria-haspopup="dialog"andaria-expandedon the trigger. - Replace
contentwithPopover’s children. - Replace
visibleandonVisibleChangewithopenandonClose. - Replace
placementwithanchorOriginandtransformOrigin. - Replace
positionReferencewithanchorElset to the reference element.
ProgressLinear
Section titled “ProgressLinear”Replace the ProgressLinear component from @itwin/itwinui-react with the LinearProgress component from @mui/material. See LinearProgress examples for reference.
- MUI
LinearProgressis indeterminate by default. When passingvalue, also setvariant="determinate". - Remove
isAnimated. MUILinearProgressanimates value changes by default. - Replace
statuswith thecolorprop. - Replace
labelswithTypography. - iTwinUI adds a visually hidden “Loading” label automatically. With MUI, label the bar with
aria-labelledbypointing to the visible label, oraria-label.
ProgressRadial
Section titled “ProgressRadial”Replace the ProgressRadial component from @itwin/itwinui-react with the CircularProgress component from @mui/material. See CircularProgress examples for reference.
- MUI
CircularProgressis indeterminate by default. When passingvalue, also setvariant="determinate". - Replace
statuswith thecolorprop. - Replace
sizewith thesizeprop, which accepts a pixel value. - MUI
CircularProgresshas no equivalent to iTwinUIProgressRadial’s children. Position content over it with CSS. See the determinate example. - iTwinUI adds a visually hidden “Loading” label automatically. With MUI, label the indicator with
aria-labelledbypointing to the visible label, oraria-label.
Replace the Radio component from @itwin/itwinui-react with the Radio component from @mui/material. See Radio examples for reference.
- Replace
labelby wrapping theRadioinFormControlLabeland passing the text to itslabelprop. - Replace
labelPropswithFormControlLabel’sslotProps.typography, andwrapperPropswith props onFormControlLabel. - Group radios in
RadioGroupinside<FormControl render={<fieldset />} role="radiogroup">with aFormLabelrendered as<legend>. MovenametoRadioGroup. - Replace
status="negative"witherroronFormControland aFormHelperTextmessage. See the Radio error example. There is no equivalent for"positive"or"warning".
RadioTile
Section titled “RadioTile”Replace the RadioTile component from @itwin/itwinui-react with the radio tile composite component.
SearchBox
Section titled “SearchBox”Replace the SearchBox component from @itwin/itwinui-react with the Input or TextField components from @mui/material. See the TextField search example for reference.
Select
Section titled “Select”Replace the Select component from @itwin/itwinui-react with the Select or NativeSelect components from @mui/material. See Select examples for reference.
- Replace
optionswithMenuItemchildren.- Replace each option’s
valuewith thevalueprop onMenuItem. - For options without icons, pass the
labelas the direct child ofMenuItem. - For options with icons, use
ListItemIconandListItemTextinsideMenuItem. See the Select icon example.
- Replace each option’s
- Replace
status="negative"witherroron a wrappingFormControland aFormHelperTextmessage. - Replace
placeholderwith a disabledMenuItem. See the MUI Select placeholder example.
SideNavigation
Section titled “SideNavigation”Replace the SideNavigation component from @itwin/itwinui-react with the NavigationRail component from @stratakit/structures. See NavigationRail examples for reference.
- Replace
itemswithNavigationRail.AnchororNavigationRail.Buttonchildren ofNavigationRail.Content. - Replace
secondaryItemswithNavigationRail.AnchororNavigationRail.Buttonchildren ofNavigationRail.Footer. - Remove
expanderPlacement. StrataKit supports a single expander location. - Replace
isExpandedwithexpandedwhen managing the expanded state. - Replace
onExpandedClickwithsetExpandedwhen managing the expanded state. - Remove
styleType="borderless". StrataKit does not support this appearance.
SkipToContentLink
Section titled “SkipToContentLink”Replace the SkipToContentLink component from @itwin/itwinui-react with the skip link composite component.
Slider
Section titled “Slider”Replace the Slider component from @itwin/itwinui-react with the Slider component from @mui/material. See Slider examples for reference.
- Replace
valueswithvalueordefaultValue. Pass a singlenumberfor a single value, or[number, number]for a range. - Replace
trackDisplayMode="none"withtrack={false}. - Replace
trackDisplayMode="even-segments"withtrack="inverted". - Replace
trackDisplayMode="odd-segments"withtrack="normal", or remove it. - Replace
trackDisplayMode="auto"withtrack="normal"ortrack="inverted". If the number of values varies, alternate between them based on the count. - Replace
tickLabelswith themarksprop. See the Slider marks example.- Use
marks={true}to place a mark at every step. - Use
marks={array}to provide custom values and labels.
- Use
- Replace
tooltipPropswithvalueLabelDisplay. Set it to"off"to hide the value label when the value is displayed elsewhere. - Replace
minLabelandmaxLabelwith aStackthat wraps the labels andSlider. See the Slider tooltip example.
SplitButton
Section titled “SplitButton”Replace the SplitButton component from @itwin/itwinui-react with a ButtonGroup containing two Buttons, both from @mui/material. The first runs the primary action; the second opens a Menu of alternatives. See the split button example.
StatusMessage
Section titled “StatusMessage”Replace the StatusMessage component from @itwin/itwinui-react with a FormHelperText and Typography components from @mui/material.
Stepper
Section titled “Stepper”Replace the Stepper component from @itwin/itwinui-react with the Stepper component from @mui/material. See Stepper examples for reference.
- The default
typerequires no changes. - Replace
type="long"with a custom implementation based on the long stepper example. - For smaller viewports, consider
MobileStepper.
Surface
Section titled “Surface”Replace the Surface component from @itwin/itwinui-react with the Paper component from @mui/material. See Paper examples for reference.
- Replace
elevationusing the table below. Both components have anelevationprop, but the scales differ.
| Surface.elevation | Paper.elevation |
|---|---|
| 0 | 1 |
| 1 | 4 |
| 2 | 7 |
| 3 | 13 |
| 4 | 17 |
| 5 | 24 |
- Replace
Surface.HeaderwithCard, or with your own styling usingTypography.
Replace the Table component from @itwin/itwinui-react with the Table component from @mui/material. See Table examples for reference.
- For simple sorting, use
TableSortLabel. - For virtualization of large data sets and advanced sorting or filtering, consider TanStack Table.
- For cell editing and cell-level keyboard navigation, use
DataGridfrom@mui/x-data-grid.
Replace the Tabs component from @itwin/itwinui-react with the Tabs component from @mui/material. See Tabs examples for reference.
- Replace
Tabs.Panelwith<div role="tabpanel">. See the Tabs example implementation for display and labeling details. - Remove
type. StrataKit uses a single tab appearance and has no equivalent to"borderless"or"pills". - Replace
colorwithtextColor. See the Tabs colors example. - Replace
Tab.LabelandTab.Descriptionwith twoTypographyelements as theTabcontent.
Replace the Tag component from @itwin/itwinui-react with the Chip component from @mui/material. See Chip examples for reference.
Replace the Text component from @itwin/itwinui-react with the Typography component from @mui/material. See Typography examples for reference.
- Replace
variantwith Typography’svariantprop to control visual size. - Replace
aswith therenderprop to control the semantic element.
Textarea
Section titled “Textarea”Replace the Textarea component from @itwin/itwinui-react with the TextField component from @mui/material and set multiline. See the TextField multiline example for reference.
- Replace
status="negative"withTextField’serrorandhelperTextprops. See the TextField error example.
Replace the Tile component from @itwin/itwinui-react with the Card component from @mui/material. See Card examples for reference.
- Replace
Tile.ActionwithCardActionArea. - Replace
Tile.ButtonswithCardActions. - Replace
Tile.ThumbnailPicturewithCardMedia. - Replace a thumbnail avatar with a large
AvatarinsideCardMedia, centered with CSS.
Replace the Toast component from @itwin/itwinui-react with the Snackbar component from @mui/material. See Snackbar examples for reference.
- MUI
Snackbarshows one notification at a time. See MUI’s examples for consecutive snackbars and stacking alternatives. - MUI
Snackbarcloses on the next click outside it, rather than after a timeout. This is preferred because it lets users control how long the notification stays visible. - Replace
type="persisting"with aSnackbarthat ignores click-away, and provide a close button to dismiss it. - Replace
type="temporary"(or an unsettype) with aSnackbar. LeaveautoHideDurationunset. - Replace
placementwith theanchorOriginprop. - Replace
statuswith a wrappedAlertand itsseverityprop.
ToggleSwitch
Section titled “ToggleSwitch”Replace the ToggleSwitch component from @itwin/itwinui-react with the Switch component from @mui/material. See Switch examples for reference.
Tooltip
Section titled “Tooltip”Replace the Tooltip component from @itwin/itwinui-react with the Tooltip component from @mui/material. See Tooltip examples for reference.
TransferList
Section titled “TransferList”Replace the TransferList component from @itwin/itwinui-react with the transfer list composite component.
Replace the Tree component from @itwin/itwinui-react with the Tree component from @stratakit/structures. See Tree examples for reference.
VisuallyHidden
Section titled “VisuallyHidden”Replace the VisuallyHidden component from @itwin/itwinui-react with the visuallyHidden style utility from @mui/utils.