v2.0.0
Breaking Changes
Classes to invert dark mode like u-text-gray-900
have been removed.
- Components now have a
ui
prop to override the entire preset instead of individual props - Components prop
popperOptions
has been renamed topopper
Alert
,AlertDialog
,Tabs
andPills
components have been removed
Avatar
wrapperClass
,backgroundClass
,placeholderClass
androundedClass
props have been removed in favor ofui
rounded
prop is now a class defaulting torounded-full
instead of a boolean prop, can be overriden throughui.avatar.rounded
chip
prop is nowchipVariant
ui.avatar.size
andui.avatar.chip.size
xxs
andxxxs
have been renamed respectively to2xs
and3xs
AvatarGroup
ringClass
andmarginClass
props have been removed in favor ofui
group
prop has been removed in favor of slots
Badge
baseClass
prop has been removed in favor ofui
rounded
prop is now a class defaulting torounded-md
instead of a boolean prop, can be overriden throughui.badge.rounded
color
prop has been added to change the color scheme of the badgevariant
prop is now the variant instead of the colorfont-medium
has been moved fromui.badge.base
toui.badge.font
Button
customClass
prop have been removedbaseClass
,iconBaseClass
androundedClass
props have been removed in favor ofui
leadingIconClass
andtrailingIconClass
props have been removedrounded
prop is now a class defaulting torounded-md
instead of a boolean prop, can be overriden throughui.button.rounded
color
prop has been added to change the color scheme of the badgevariant
prop is now the variant instead of the colorlabelCompact
andcompact
props have been removed entirely alongside presetui.button.compact
andui.button.icon.leading.compactSpacing
andui.button.icon.trailing.compactSpacing
padded
prop has been added to remove paddingui.button.size.xxs
has been renamed toui.button.size.2xs
ui.button.size.2xl
has been introducedui.button.gap
has been introduced to replace margins defined inui.button.icon.leading.spacing
andui.button.icon.trailing.spacing
ui.button.icon.leading.spacing
andui.button.icon.trailing.spacing
that added negative margin to icons have been removed to keep consitency when surcharging a button through default slot (code has only been commented for now)font-medium
has been moved fromui.button.base
toui.button.font
ButtonGroup
- New component
Dropdown
wrapperClass
,containerClass
,widthClass
,backgroundClass
,shadowClass
,roundedClass
,ringClass
,divideClass
,baseClass
,transitionClass
,groupClass
,itemBaseClass
,itemActiveClass
,itemInactiveClass
,itemDisabledClass
,itemIconClass
,itemAvatarClass
anditemShortcutsClass
props have been removed in favor ofui
- preset has been updated to improve dark mode
Card
baseClass
,backgroundClass
,borderColorClass
,shadowClass
,ringClass
,roundedClass
,bodyClass
,bodyBackgroundClass
,headerClass
,headerBackgroundClass
,footerClass
,footerBackgroundClass
props have been removed in favor ofui
rounded
prop is now a class defaulting torounded-lg
instead of a boolean prop, can be overriden throughui.avatar.rounded
padded
prop has been removed, useui.rounded = 'sm:rounded-lg'
instead when falseui.card.border
has been removed in favor ofui.card.divide
ui.card.header
&ui.card.footer
are now{ spacing: '', background: '' }
Container
constrainedClass
prop has been removed in favor ofui
ui.container.base
andui.container.spacing
have been addedpadded
prop has been removed, useui.spacing = 'sm:px-6 lg:px-8'
instead when falseconstrained
prop has been removed, useui.constrained = ''
instead when false
Input
wrapperClass
,baseClass
,iconBaseClass
andcustomClass
props have been removed in favor ofui
FormGroup
- Renamed to
InputGroup
wrapperClass
,containerClass
,labelClass
,labelWrapperClass
,descriptionClass
,requiredClass
andhintClass
props have been removed in favor ofui
Textarea
wrapperClass
,baseClass
andcustomClass
props have been removed in favor ofui
resize
is now false by default
Select
wrapperClass
,baseClass
,iconBaseClass
andcustomClass
props have been removed in favor ofui
SelectCustom
- Renamed to
SelectMenu
placeholder
prop is nownull
by defaultnullable
prop has been removedtextAttribute
has been renamed tooptionAttribute
and now defaults tolabel
wrapperClass
,baseClass
,iconBaseClass
,customClass
,listBaseClass
,listContainerClass
,listWidthClass
,listInputClass
,listTransitionClass
,listOptionBaseClass
,listOptionContainerClass
,listOptionActiveClass
,listOptionInactiveClass
,listOptionSelectedClass
,listOptionUnselectedClass
,listOptionDisabledClass
,listOptionEmptyClass
,listOptionIcon
,listOptionIconBaseClass
,listOptionIconActiveClass
,listOptionIconInactiveClass
andlistOptionIconSizeClass
props have been removed in favor ofui
ui.selectCustom.list
has been moved to the root ofui.selectMenu
, the component now usesui.select
to render the default slot
Radio
wrapperClass
,baseClass
,labelClass
,requiredClass
,helpClass
andcustomClass
props have been removed in favor ofui
Checkbox
wrapperClass
,baseClass
,labelClass
,requiredClass
,helpClass
andcustomClass
props have been removed in favor ofui
Toggle
baseClass
,activeClass
,inactiveClass
,containerBaseClass
,containerActiveClass
,containerInactiveClass
,iconBaseClass
,iconActiveClass
,iconInactiveClass
,iconOnClass
andiconOffClass
props have been removed in favor ofui
CommandPalette
inputCloseIcon
andemptyIcon
props have been removed in favor ofui
inputIcon
prop has been renamed toicon
inputPlaceholder
prop has been renamed toplaceholder
options
prop has been renamed tofuse
to follow thepopper
andui
props convention
Modal
wrapperClass
,innerClass
,containerClass
,baseClass
,backgroundClass
,overlayBackgroundClass
,overlayTransitionClass
,shadowClass
,ringClass
,roundedClass
,widthClass
andtransitionClass
props have been removed in favor ofui
innerStyle
prop has been removed#header
and#footer
slots have been removed
Slideover
wrapperClass
,baseClass
,backgroundClass
,overlayBackgroundClass
,overlayTransitionClass
,widthClass
,headerClass
andtransitionClass
props have been removed in favor ofui
#header
slot has been removed
Popover
wrapperClass
,containerClass
,widthClass
,baseClass
,backgroundClass
,shadowClass
,roundedClass
,ringClass
andtransitionClass
props have been removed in favor ofui
Tooltip
wrapperClass
,containerClass
,baseClass
,widthClass
,backgroundClass
,shadowClass
,ringClass
,roundedClass
,shortcutsClass
andtransitionClass
props have been removed in favor ofui
ContextMenu
wrapperClass
,containerClass
,widthClass
,backgroundClass
,shadowClass
,roundedClass
,ringClass
,baseClass
andtransitionClass
Notification
backgroundClass
,shadowClass
,ringClass
,roundedClass
,transitionClass
,customClass
andiconBaseClass
props have been removed in favor ofui
type
prop has been removedui.notification.type
andui.notification.icon.color
have been removedui.notification.close.icon.name
has been moved toui.notification.default.closeIcon
useToast
addNotification
andremoveNotification
have been renamed toadd
andremove
success
,info
,warning
anderror
methods have been removed astype
disappeared fromNotification