# A MUI alternative for React (and Vue)

Source: https://ecosphere.dev/docs/compare/mui (Ecosphere 1.5). Install `vue-ecosphere` for Vue 3 or `react-ecosphere` for React 18.2+/19: same components, props, markup and stylesheet.

Ecosphere is an open-source React and Vue 3 component library for data-heavy apps: plain CSS tokens instead of CSS-in-JS, with the data table and charts included. This page compares it with MUI and maps each component.

## How they differ

|  | MUI | Ecosphere |
| --- | --- | --- |
| Frameworks | React only. | React (react-ecosphere) and Vue 3 (vue-ecosphere), with the same components, props and markup. |
| Styling | Emotion (CSS-in-JS), a ThemeProvider and the sx prop. | One plain stylesheet and CSS custom properties. No runtime styling and no provider; data-theme="dark" switches the theme. |
| Look | Material Design, themed to your brand. | Its own calm, blue-on-slate look, made for dense screens of tables, charts and forms. |
| Data grid and charts | MUI X: a separate package, with some features in paid plans. | EcoDataTable, EcoTreeTable and the charts are in the MIT package. |
| Server rendering | Supported with Emotion's setup. | Every component renders on the server; overlays mount after hydration. Works with Next.js Server Components. |
| AI agents | — | An agent skill teaches Claude Code, Codex and Gemini CLI the real props of the release you run. |

## From MUI to Ecosphere

Change handlers receive the value, not the event; a destructive dialog names the consequence on its button.

Vue (vue-ecosphere):

```vue
<!-- The same components in Vue 3 -->
<EcoButton variant="danger" @click="remove">Delete report</EcoButton>
<EcoTextField v-model="name" label="Full name" />
<EcoDialog v-model:open="open" title="Delete report?" confirm-label="Delete report" danger @confirm="remove" />
```

React (react-ecosphere):

```tsx
import "react-ecosphere/styles.css";
import { EcoButton, EcoTextField, EcoDialog } from "react-ecosphere";

// MUI: <Button variant="contained" color="error" onClick={remove}>Delete</Button>
<EcoButton variant="danger" onClick={remove}>Delete report</EcoButton>

// MUI: <TextField label="Full name" value={name} onChange={(e) => setName(e.target.value)} />
<EcoTextField label="Full name" value={name} onChange={setName} />

// MUI: <Dialog open={open} onClose={close}>…</Dialog>
<EcoDialog open={open} onOpenChange={setOpen} title="Delete report?" confirmLabel="Delete report" danger onConfirm={remove} />
```

## Component map

What replaces each MUI component.

| MUI | Ecosphere |
| --- | --- |
| `Button / LoadingButton` | EcoButton (variant, loading) |
| `IconButton` | EcoIconButton |
| `ButtonGroup with a menu` | EcoSplitButton |
| `TextField` | EcoTextField, EcoEmailField, EcoNumberField, EcoTextarea |
| `Select / Autocomplete` | EcoSelect |
| `Checkbox / FormGroup` | EcoCheckbox / EcoCheckboxGroup |
| `Switch` | EcoSwitch |
| `ToggleButtonGroup` | EcoSegmented |
| `Chip (choices)` | EcoChoicePills or EcoFilterChips |
| `DatePicker / TimePicker (MUI X)` | EcoDatePicker / EcoTimePicker |
| `DataGrid (MUI X) / Table` | EcoDataTable / EcoTable |
| `TreeView (MUI X)` | EcoTreeView, EcoTreeTable |
| `Dialog` | EcoDialog, or useConfirm for a yes/no |
| `Drawer` | EcoDrawer |
| `Snackbar` | useToast with EcoToaster |
| `Alert` | EcoNotice |
| `Tooltip` | EcoTooltip |
| `Menu` | EcoMenu |
| `Tabs` | EcoTabs |
| `Stepper` | EcoProgressSteps |
| `Pagination` | EcoPagination |
| `AppBar + Drawer navigation` | EcoAppShell with EcoNavItem |
| `Card / Accordion` | EcoCard / EcoDisclosure |
| `Avatar / Badge / Chip (label)` | EcoAvatar / EcoBadge / EcoTag |
| `LinearProgress / CircularProgress` | EcoMeter / EcoSpinner |
| `Skeleton` | EcoSkeleton |
| `Charts (MUI X)` | EcoBarChart, EcoLineChart, EcoAreaChart, EcoDonutChart… |

## Get started

[Using React](https://ecosphere.dev/docs/guide/react) covers setup, server rendering and how the API maps from the Vue docs. Coding agents can learn the library with the [Ecosphere skill](https://ecosphere.dev/docs/guide/ai-agents).
