🔘Buttons
Changelog
Button
Breaking changes
customClassprop has been removed; useclassNameinstead
New features
added
darkcoloradded loading state
added
capitalizeprop which is true by default, but when set to false, disables capitalizationadded
gradientprop for all supported colors
Fixes
fixed
wdprop not working
Deprecations
NoBackground,WithBackgroundandWithGradientcolors are now deprecated and will be removed in a future version; forNoBackground, use variant =text; forWithBackground, use variant =outlined; forWithGradient, usegradient = { true }dangercolor is deprecated, useerrorinsteadthemecolor is deprecated, usesecondaryinsteadsizes
xs,sm,lghave been replaced withtiny,small,medium,largein order to be in line with the Material-UI conventions
Removed deprecations
customClass
IconButton
Breaking changes
customClassprop has been removed; useclassNameinstead
New features
IMPORTANT: IconButton is now using Button behind the scenes, so all the changes mentioned above regarding Button apply here too
added
darkcoloradded
typeprop for custom icon buttonsadded loading state
Deprecations
IMPORTANT: IconButton is now using Button behind the scenes, so all the changes mentioned above regarding Button apply here too
Removed deprecations
customClass
AddButton, CancelButton, DownwardButton, SaveButton, UpwardButton
this component has been removed; use IconButton with
typeprop insteadtitleprop is now calledtooltip
DeleteButton, DownloadButton
his component has been removed; use IconButton with
typeprop insteadtitleprop is now calledtooltipfontSize is now
smallby default, use fontSize =mediumto get the old effect
EditButton
this component has been removed; use IconButton with
type=editorviewinsteadeditModeprop has been removed; switchtypebetweeneditandviewfor the same effecttitleprop is now calledtooltipfontSize is now
smallby default, use fontSize =mediumto get the old effect
UploadButton
Improvements
we merged the component
UploadButtonwithFileUploadButtonremoved the dependency to
react-toastify
Breaking changes
from the old
UploadButtontitleprop is now calledtooltipfontSizeis nowsmallby default; usemediumto get back the old effectchildrenprop is no longer used
from the old
FileUploadButtoncomponentprop has been removed; use theIconprop to change the displayed iconchildrenprop is no longer usedonFileSelectedis nowonFilesChangedand:will not trigger if the same files are selected
it will trigger if the dialog for files to select is canceled; the argument will be an empty
FileListobject
uploadingprop has been removed; use thedisabledpropmaxSizeis now two different props:maxTotalSizefor maximum size all the files combined are allowedmaxItemSizefor maximum size for each file selected is allowed
minSizeis now two different props:minTotalSizefor minimum size all the files combined are allowedminItemSizefor minimum size for each file selected is allowed
uploadText,uploadingText,invalidTypeText,tooLargeTextandtooSmallTexthave all been removed
New features
the displayed icon is now customizable with the property
Iconnew
onErrorprop that is called when a file validation failsnow the
multipleprop is used; you can select more than one file
Last updated