Skip to content
nexubDesign System
v11.9.0

Getting Started

Migrating to 9.0

Migrating to

9.0 removes, and adds nothing. Everything on this page was deprecated in 8.x and still works on 8.9. Move off each item on 8.9, with the codemod doing most of it, and 9.0 is a version bump.

Removed in 9.0

Removed in 9.0Use insteadCodemod
The classic style (the 7.x Material 3 look): data-style="classic" on the web, and the style prop on NexubNativeProvider (both values). Deprecated in 8.0.Signature, the only style. Remove the attribute or prop, then check your screens.changes-in-9 reports it
Button’s legacy variants primary, secondary, outline and ghost. Deprecated in 8.4.filled, tonal, outlined and text (same styles).button-aliases rewrites literals and reports expressions
onChange on DatePicker, DateTimePicker and NumberInput. Deprecated in 8.5.onValueChange (same arguments), like every other Nexub input.changes-in-9 rewrites it
React Native: dismissable on Dialog and BottomSheet; minimumDate / maximumDate on DateTimeField; direction="row" | "stack" on ButtonGroup. Deprecated in 8.5.dismissible; minDate / maxDate; orientation="horizontal" | "vertical". The web names.changes-in-9 rewrites them and reports a direction expression
The hidePassword message. Deprecated in 7.2.Nothing: PasswordInput keeps one name (“Show password”) and reports its state with aria-pressed. Delete the key from your message overrides.changes-in-9 reports it
TSX
<Button variant="filled">Pay</Button>             {/* was variant="primary" */}
<DatePicker value={date} onValueChange={setDate} />  {/* was onChange */}

// React Native
<BottomSheet dismissible={false} open={open} onOpenChange={setOpen}>…</BottomSheet>
<DateTimeField label="Date" value={d} onValueChange={setD} minDate={new Date()} />
<ButtonGroup orientation="vertical">…</ButtonGroup>

Find what to change

Run both rules on 8.9. They rewrite what is mechanical and list the rest with a file and line:

Terminal
npx nexub-migrate src --rules changes-in-9,button-aliases           # dry run
npx nexub-migrate src --rules changes-in-9,button-aliases --write   # apply
npx nexub-migrate src --rules changes-in-9,button-aliases --check   # CI: exit 1 if anything is left

TypeScript helps too: the removed props and the ButtonLegacyVariant names are marked @deprecated on 8.x, so your editor strikes them through. When the codemod and your editor are both quiet, upgrade.