- Installation
- Styled-UI v6 should be installed as a direct dependency, not a peerDependency anymore.
- Importing
- Importing from
'@faithlife/styled-ui/v6'
has been removed—import v6 components from'@faithlife/styled-ui'
now.
- Importing from
Accordion
- The
styleOverrides
prop has been removed in favor of Styled System props. Use style props forAccordion.Panel
directly on that component.
- The
AnchorButton
AnchorButton
has been removed—use<Button as="a" />
instead.
Button
- Check your variants:
primaryOutline
has been replaced bysecondary
.primaryTransparent
has been replaced bylink
and now uses inline spacing (no padding) by default.
- Check your sizes:
- Standalone props have been replaced by the
size
prop, such assize="medium"
instead ofmedium
. - Size definitions have also changed, and the
condensed
prop is no longer used. The following table summarizes the differences:┌───────────────────────────┬────────────────────────────┬────────────────────────────┐ │ "small" │ "medium" │ "large" │ ├─────┬──────────────┬──────┼──────┬──────────────┬──────┼──────┬──────────────┬──────┤ │ v5 │ v5 condensed │ v6 │ v5 │ v5 condensed │ v6 │ v5 │ v5 condensed │ v6 │ ┌──────────┼─────┴──────────────┼──────┼──────┴──────────────┼──────┼──────┴──────────────┼──────┤ │ height │ 32px │ 32px │ 40px │ 40px │ 56px │ 48px │ ├──────────┼─────┬──────────────┼──────┼──────┬──────────────┼──────┼──────┬──────────────┼──────┤ │ paddingX │ 8px │ 6px │ 6px │ 14px │ 10px │ 10px │ 22px │ 14px │ 11px │ └──────────┴─────┴──────────────┴──────┴──────┴──────────────┴──────┴──────┴──────────────┴──────┘
- Size variant styles no longer change the dimensions of child
<svg>
s, so manually resize yours as needed.
- Standalone props have been replaced by the
- Check your variants:
Checkbox
- The old
theme
prop functionality has been replaced by the global theme object and Styled System props. Use theThemeProvider
component to customize the theme.
- The old
DatePickerInput
- The
styleOverrides
prop has been removed in favor of Styled System props. Use style props for the input directly on theDatePickerInput
component, and use style props for the calendar popover on aDatePickerInput.Popover
child config component. - The
placement
prop has been removed—useplacement
onDatePickerInput.Popover
instead.
- The
Dropdown
- The
Dropdown
component has been renamed toMenu
.Dropdown.Menu
has been renamedMenu.Dropdown
.
- "Dropdown" is a general term that refers to content inside of a popover. For more details, see the docs on the
Menu
andListbox
components.
- The
HelpBox
- The old
theme
prop functionality has been replaced by the global theme object and Styled System props. Use theThemeProvider
component to customize the theme.
- The old
Input
- The
styleOverrides
prop has been removed in favor of Styled System props.
- The
LoadingSpinner
- The old
theme
prop functionality has been replaced by the global theme object and Styled System props. Use theThemeProvider
component to customize the theme.
- The old
Modal
- Subcomponents have been renamed,
ModalContent
has been replaced byModal.Content
, etc.
- Subcomponents have been renamed,
ParameterSentence
- Subcomponents have been renamed:
ParameterSelect
toParameterSentence.Select
,ParameterInputBox
toParameterSentence.Input
. - The
styleOverrides
prop has been removed in favor of Styled System props.
- Subcomponents have been renamed:
Popover
PopoverManager
andPopoverReference
have been removed. SeePopover
's documentation for the new API.- The
styleOverrides
prop has been removed in favor of Styled System props.
Radio
- The old
theme
prop functionality has been replaced by the global theme object and Styled System props. Use theThemeProvider
component to customize the theme.
- The old
SimpleToast
- The
styleOverrides
prop and oldtheme
prop have been replaced by the global theme object and Styled System props. Use theThemeProvider
component to customize the theme.
- The
Slider
- The
styleOverrides
prop has been removed in favor of Styled System props.
- The
Tab
- Subcomponents have been renamed:
TabList
toTab.List
,SequencedTabList
toSequencedTab.List
, etc.
- Subcomponents have been renamed:
text-input
components- Components previously imported from
'@faithlife/styled-ui/dist/text-input-v2'
should now be imported from'@faithlife/styled-ui/text-input'
:lang: js --- import { AsyncSelect, CreatableSelect, AsyncCreatableSelect, Select, avatarComponents, reactSelectComponents, InferredText, InferredSelect, } from '@faithlife/styled-ui/text-input';
- Deprecated components previously imported from
'@faithlife/styled-ui/dist/text-input'
(Typeahead
,AsyncTypeahead
,Token
,Menu
,MenuItem
,InferredTypeahead
) have been removed. Select
components behave slightly differently now in one situation. WhenisMulti
istrue
, if one or more options are selected and then later all selected options are removed, upon the removal of the last option the value passed toonChange
will benull
. In v5, the value passed toonChange
in this situation would have been[]
. See the React Select v3 upgrade guide for more details.
- Components previously imported from
Tooltip
- The
styleOverrides
prop has been removed in favor of Styled System props.
- The