Buttons
Changelog
Button
Breaking changes
customClass
prop has been removed; useclassName
instead
New features
added
dark
coloradded loading state
added
capitalize
prop which is true by default, but when set to false, disables capitalizationadded
gradient
prop for all supported colors
Fixes
fixed
wd
prop not working
Deprecations
NoBackground
,WithBackground
andWithGradient
colors are now deprecated and will be removed in a future version; forNoBackground
, use variant =text
; forWithBackground
, use variant =outlined
; forWithGradient
, usegradient = { true }
danger
color is deprecated, useerror
insteadtheme
color is deprecated, usesecondary
insteadsizes
xs
,sm
,lg
have been replaced withtiny
,small
,medium
,large
in order to be in line with the Material-UI conventions
Removed deprecations
customClass
IconButton
Breaking changes
customClass
prop has been removed; useclassName
instead
New features
IMPORTANT: IconButton is now using Button behind the scenes, so all the changes mentioned above regarding Button apply here too
added
dark
coloradded
type
prop 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
type
prop insteadtitle
prop is now calledtooltip
DeleteButton, DownloadButton
his component has been removed; use IconButton with
type
prop insteadtitle
prop is now calledtooltip
fontSize is now
small
by default, use fontSize =medium
to get the old effect
EditButton
this component has been removed; use IconButton with
type
=edit
orview
insteadeditMode
prop has been removed; switchtype
betweenedit
andview
for the same effecttitle
prop is now calledtooltip
fontSize is now
small
by default, use fontSize =medium
to get the old effect
UploadButton
Improvements
we merged the component
UploadButton
withFileUploadButton
removed the dependency to
react-toastify
Breaking changes
from the old
UploadButton
title
prop is now calledtooltip
fontSize
is nowsmall
by default; usemedium
to get back the old effectchildren
prop is no longer used
from the old
FileUploadButton
component
prop has been removed; use theIcon
prop to change the displayed iconchildren
prop is no longer usedonFileSelected
is nowonFilesChanged
and: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
FileList
object
uploading
prop has been removed; use thedisabled
propmaxSize
is now two different props:maxTotalSize
for maximum size all the files combined are allowedmaxItemSize
for maximum size for each file selected is allowed
minSize
is now two different props:minTotalSize
for minimum size all the files combined are allowedminItemSize
for minimum size for each file selected is allowed
uploadText
,uploadingText
,invalidTypeText
,tooLargeText
andtooSmallText
have all been removed
New features
the displayed icon is now customizable with the property
Icon
new
onError
prop that is called when a file validation failsnow the
multiple
prop is used; you can select more than one file
Last updated