# An Ant Design alternative for Vue and React

Source: https://ecosphere.dev/docs/compare/ant-design (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 design system for data-heavy Vue 3 and React apps. If you use Ant Design Vue or Ant Design, this page shows how the two differ and what replaces each component.

## How they differ

|  | Ant Design | Ecosphere |
| --- | --- | --- |
| Frameworks | Ant Design Vue for Vue; Ant Design for React, with its own API. | vue-ecosphere and react-ecosphere: the same components, props and markup, one stylesheet. |
| Theming | A ConfigProvider and a JavaScript theme object. | Plain CSS custom properties. Override a token in your stylesheet; set data-theme="dark" (or "auto") for the dark theme. |
| Scope | A very wide catalogue (cascader, transfer, mentions, rate, slider…). | A focused set for data-heavy apps: data tables, tree tables, charts, forms, overlays and an app shell. |
| Charts | A separate library (Ant Design Charts). | Built in: bar, line, area, donut, pie, radar, diverging and step-line charts in the same look. |
| Forms | a-form with rules and a-form-item wrappers. | Each field carries label, required, hint and error; you validate in the view. |
| AI agents | — | An agent skill teaches Claude Code, Codex and Gemini CLI the API of the release you run, and a second skill migrates Ant Design apps. |

## The same screen, before and after

Ecosphere fields carry their own label; a destructive dialog names the consequence on its button.

Vue (vue-ecosphere):

```vue
<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
<EcoButton variant="danger" onClick={remove}>Delete report</EcoButton>
<EcoTextField value={name} onChange={setName} label="Full name" />
<EcoDialog open={open} onOpenChange={setOpen} title="Delete report?" confirmLabel="Delete report" danger onConfirm={remove} />
```

## Component map

What replaces each Ant Design component. The same names work in Vue and React.

| Ant Design | Ecosphere |
| --- | --- |
| `a-button` | EcoButton (variant: primary, secondary, tertiary, danger) |
| `a-input / a-input-password` | EcoTextField |
| `a-input-search` | EcoSearchField |
| `a-input-number` | EcoNumberField |
| `a-textarea` | EcoTextarea |
| `a-select` | EcoSelect |
| `a-checkbox / a-checkbox-group` | EcoCheckbox / EcoCheckboxGroup |
| `a-switch` | EcoSwitch |
| `a-radio-group (buttons)` | EcoSegmented |
| `a-date-picker / a-time-picker` | EcoDatePicker / EcoTimePicker |
| `a-upload` | EcoFileUpload |
| `a-table` | EcoDataTable (or EcoTable for a static table) |
| `tree a-table / a-tree` | EcoTreeTable / EcoTreeView |
| `a-modal / Modal.confirm` | EcoDialog / useConfirm |
| `a-drawer` | EcoDrawer |
| `message / notification` | useToast with EcoToaster |
| `a-alert / a-result / a-empty` | EcoNotice / EcoEmptyState |
| `a-tooltip` | EcoTooltip |
| `a-dropdown + a-menu` | EcoMenu (or EcoSplitButton) |
| `a-tabs` | EcoTabs |
| `a-steps` | EcoProgressSteps |
| `a-pagination` | EcoPagination |
| `a-layout + a-menu (inline)` | EcoAppShell with EcoNavItem and EcoNavSection |
| `a-card / a-collapse` | EcoCard / EcoDisclosure |
| `a-tag / a-badge` | EcoTag / EcoBadge |
| `a-statistic / a-progress` | EcoKpi or EcoStat / EcoMeter |
| `a-skeleton / a-spin` | EcoSkeleton / EcoSpinner |

## Let an agent do the move

The ecosphere-migrate skill walks an AI coding agent through an Ant Design app view by view, with this map and the prop translations. Ant Design code for comparison:

Vue (vue-ecosphere):

```vue
<a-button type="primary" danger @click="remove">Delete</a-button>
<a-input v-model:value="name" placeholder="Full name" />
<a-modal v-model:open="open" title="Delete report?" ok-text="Delete report" @ok="remove" />

# Claude Code
/plugin marketplace add bacon-delight/ecosphere-skill
/plugin install ecosphere --marketplace bacon-delight/ecosphere-skill
# then ask: "Migrate this app from Ant Design Vue to Ecosphere"
```

React (react-ecosphere):

```tsx
# Claude Code
/plugin marketplace add bacon-delight/ecosphere-skill
/plugin install ecosphere --marketplace bacon-delight/ecosphere-skill
# then ask: "Migrate this app from Ant Design Vue to Ecosphere"
```
