@ark-ui/svelte@5.11.0
Added
-
Collapsible: Add support for
collapsedHeightandcollapsedWidthprops to control the dimensions of the
collapsible content when in its collapsed state. -
Focus Trap: Allow elements referenced by
aria-controlsto be included in the trap scope. This makes it possible
for menus, popovers, etc. to be portalled and work correctly. -
Pagination: Add
getPageUrlprop for generatinghrefattributes when using pagination as links.
const service = useMachine(pagination.machine, {
type: 'link',
getPageUrl: ({ page, pageSize }) => `/products?page=${page}&size=${pageSize}`,
})-
Select: Add
SelectRootComponentPropstype export for better component type composition. -
Listbox: Add
ListboxRootComponentPropstype export for better component type composition. -
Combobox: Add
ComboboxRootComponentPropstype export for better component type composition. -
TreeView:
- Add
TreeViewRootComponentPropstype export for better component type composition. - (Experimental) Add support for node renaming functionality:
- Add
TreeViewNodeRenameInputcomponent for inline node label editing - Add
canRenameprop to control which nodes can be renamed - Add
onRenameStart,onBeforeRename, andonRenameCompletecallbacks for rename lifecycle - Add
CheckedChangeDetails,LoadChildrenErrorDetails,RenameStartDetails, andRenameCompleteDetailstype exports
- Add
- Add
Fixed
-
Select: Fix issue where
Select.HiddenSelectdoesn't emit correct values when using custom objects withitemToValue -
Field: Fix issue where
bind:valuedoesn't work correctly inField.Textarea,Field.Input, andField.Select
components -
Password Input: Fix issue where
bind:valuedoesn't work correctly inPasswordInput.Inputcomponent -
Scroll Area: Fix RTL horizontal scrollbar positioning on Safari
-
Slider: Fix issue where slider continues dragging when disabled during drag operation.
-
Switch: Fix issue where
data-activeis inconsistently applied whendisabledstate changes at runtime -
Presence: Fix issue where exit animations don't work on subsequent toggles when using
lazyMountandunmountOnExittogether