Migrating from Material UI
The first step is to install @volvo-cars/css. During the transition period, you can use both MUI and design system components in the same project.
The migration process varies depending on the type of component.
Core and layout components
Section titled “Core and layout components”Examples: Box, Stack, Grid, Typography, Button
The design system provides utility classes as alternatives to these MUI components. If you’re not familiar with utility classes, read the CSS architecture page first.
For general layouts and Grid components, follow the layout guidelines.
Component mapping
Section titled “Component mapping”| Material UI | Design system alternative |
|---|---|
| Button | Button |
| Icon | Icon |
| IconButton | IconButton |
| Input | TextInput |
| TextArea | TextArea |
| Checkbox | Checkbox |
| Radio | Radio |
| Select | Select |
| Switch | Switch |
| Slider | RangeSlider |
| Dialog | Dialog |
| Sidebar | Sheet |
| Tooltip | Tooltip |
| Breadcrumbs | Breadcrumbs |
| Accordion | Accordion |
| DataGrid | Table |
| TablePagination | TablePagination |
| Pagination | PagePagination |
| DatePicker | DropdownCalendar |
| DateRangePicker | DropdownCalendarRange |
| MultiSelect | MultiSelect |
| FilterSelect | DropdownSelect |
| Skeleton | Skeleton |
| Progress | Spinner |
| Snackbar | Work in progress |
Refer to the component documentation for usage details and examples of each alternative.