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
-
Breaking changes when migrating from v5 to v6:
useId
.breakpoint
theme object is removed. Usebreakpoints
ormediaQueries
instead!<ElevatedSheets>
and<PlainSheets>
components are removed. Use<Sheets>
instead! If you don't want the overlay, setwithOverlay={false}
.title
prop in<Popover>
is renamed tonavigationTitle
to make it clear what it is used for and also to align prop naming with<Sheets>
.isFullWidth
prop is removed. If you want a specific width, wrap in a container with that width, or pass a customwidth
style to the component.<WithIconButton>
is removed. All regular buttons have arightIcon
prop to add icons.@einride/ui
:<LabelTextInput>
and<LabelSelect>
components are removed. Use<TextInput>
and<Select>
withlabel
prop 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 alabel
prop.isFilterable
prop in<SearchSelect>
defaults totrue
instead offalse
. It defaulted tofalse
before just for backwards compatibility reasons. If you want theisFilterable={false}
behavior, you need to set it explicitly now.wrapperStyles
prop 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