Repository navigation
v1.1.0
First release: the Ecosphere Design System for React, matching vue-ecosphere 1.1.0.
- All 97 components, with vue-ecosphere's props and markup. Vue's
v-modelbecomes controlled
props (value/onChange,foo/onFooChange), emits becomeon…callbacks, and slots
becomechildren, ReactNode props andrender…props. useToast()with<EcoToaster />,useConfirm()with<EcoConfirmHost />, anduseEcoId().- The stylesheet (
react-ecosphere/styles.css), fonts andtokens.json, identical to
vue-ecosphere 1.1.0's. - React 18.2 and 19; server rendering;
"use client"for React Server Components. - Parity tests render every component in both packages and compare the markup.
Where the React API is not the mechanical translation of the Vue one:
EcoCheckboxandEcoSwitchtakechecked/defaultChecked/onChange(checked).EcoFieldtakeshtmlFor; its props type isEcoFieldComponentProps.EcoNavItemrenders a plain<a>; pass your router's link asasand setactivefrom the
router's match (there is noexact).- Where Vue has a prop and a slot of the same name (a dialog's
title, a toast'saction), React
has one ReactNode prop.EcoSearchField's#filterslot isfilterButton, and
EcoComposeModal's#toslot istoField. useToast()anduseConfirm()can be called anywhere, not only in components.