You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The slots and slotProps APIs are in the process of being standardized. The analogous APIs—components, componentsProps, <SlotName>Component, and <SlotName>Props—are going to be deprecated and eventually removed. This improves the developer experience through consistency, predictability, and reduced cognitive load.
Affected components
The following components are affected by this change:
To facilitate UI automation testing, you can use slotProps to pass custom properties to underlying components.
Alert
<Alertvariant="solid"severity="success"isClosableonClose={onClose}slotProps={{closeButton: {'data-test': 'alert-close-button',},}}><Text>This is a success alert.</Text></Alert>
<Tagvariant="solid"isClosableonClose={onClose}slotProps={{closeButton: {'data-test': 'tag-close-button',},}}><Text>This is a tag</Text></Tag>
Toast
<Toastappearance="success"isClosableonClose={onClose}slotProps={{closeButton: {'data-test': 'toast-close-button',},}}><Text>This is a success toast.</Text></Toast>
Updates for @tonic-ui/react
CSS variable configuration
The theme.config option for CSS variables is deprecated. Use the cssVariables configuration instead.
Breaking Changes in Tonic UI v3
This issue will address the breaking changes introduced in Tonic UI v3.
Use
slots
andslotProps
to replaceComponent
andComponentProps
Inner element overrides
https://mui.com/material-ui/migration/migrating-from-deprecated-apis/#inner-element-overrides for details
The
slots
andslotProps
APIs are in the process of being standardized. The analogous APIs—components
,componentsProps
,<SlotName>Component
, and<SlotName>Props
—are going to be deprecated and eventually removed. This improves the developer experience through consistency, predictability, and reduced cognitive load.Affected components
The following components are affected by this change:
AccordionContent
TransitionComponent
TransitionProps
DatePickerContent
PopperComponent
PopperProps
TransitionComponent
TransitionProps
DrawerContent
TransitionComponent
TransitionProps
DrawerOverlay
TransitionComponent
TransitionProps
MenuContent
PopperComponent
PopperProps
TransitionComponent
TransitionProps
SubmenuContent
PopperComponent
PopperProps
TransitionComponent
TransitionProps
ModalContent
TransitionComponent
TransitionProps
ModalOverlay
TransitionComponent
TransitionProps
PopoverContent
PopperComponent
PopperProps
PopoverArrowComponent
PopoverArrowProps
TransitionComponent
TransitionProps
ToastManager
TransitionComponent
TransitionProps
ToastTransitionController
TransitionComponent
TransitionProps
Tooltip
PopperComponent
PopperProps
TooltipArrowComponent
TooltipArrowProps
TransitionComponent
TransitionProps
TooltipContent
PopperComponent
PopperProps
TooltipArrowComponent
TooltipArrowProps
TransitionComponent
TransitionProps
TreeItem
TransitionComponent
TransitionProps
Transition component and props update
TransitionComponent
The
AccordionContent
'sTransitionComponent
was deprecated in favor ofslots.transition
:TransitionProps
The
AccordionContent
'sTransitionProps
was deprecated in favor ofslotProps.transition
:Passing props to close buttons
To facilitate UI automation testing, you can use
slotProps
to pass custom properties to underlying components.Alert
Drawer
Modal
Tag
Toast
Updates for
@tonic-ui/react
CSS variable configuration
The
theme.config
option for CSS variables is deprecated. Use thecssVariables
configuration instead.Deprecated:
Updated:
or
Calendar
Calendar
component has been deprecated and will be removed in a future release. UseDateCalendar
instead.date
anddefaultDate
props have been renamed tovalue
anddefaultValue
, respectively.firstDayOfWeek
prop has been renamed toweekStartsOn
.DatePicker
closeOnSelect
: The default value has been updated fromfalse
totrue
, so the date picker will now automatically close when a date is selected.Popper
anchorEl
has been deprecated and will be removed in a future release. UsereferenceRef
instead.Updates for
@tonic-ui/theme
createTheme
function has been removed from the named exports.The text was updated successfully, but these errors were encountered: