Migrate from v5 to v6 #306
filiptammergard
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Breaking changes when migrating from v5 to v6:
useId.breakpointtheme object is removed. UsebreakpointsormediaQueriesinstead!<ElevatedSheets>and<PlainSheets>components are removed. Use<Sheets>instead! If you don't want the overlay, setwithOverlay={false}.titleprop in<Popover>is renamed tonavigationTitleto make it clear what it is used for and also to align prop naming with<Sheets>.isFullWidthprop is removed. If you want a specific width, wrap in a container with that width, or pass a customwidthstyle to the component.<WithIconButton>is removed. All regular buttons have arightIconprop to add icons.@einride/ui:<LabelTextInput>and<LabelSelect>components are removed. Use<TextInput>and<Select>withlabelprop instead! Preferring many highly specific components with good names to components with many configuration options has served us well. However, creating separate input components for when label is used creates more maintenance work than it saves. From now on all affected input components will be supported with and without alabelprop.isFilterableprop in<SearchSelect>defaults totrueinstead offalse. It defaulted tofalsebefore just for backwards compatibility reasons. If you want theisFilterable={false}behavior, you need to set it explicitly now.wrapperStylesprop in<SearchSelect>is removed in favor ofwrapperProps. It lets you add any props to the wrapper element rather than just styles.Beta Was this translation helpful? Give feedback.
All reactions