Skip to content

@agent-native/toolkit@0.16.5

Choose a tag to compare

@builder-io-integration builder-io-integration released this 19 Aug 00:01
· 5072 commits to main since this release
f107280

Patch Changes

  • 0b57293: Fix ActionButton and IconButton (from @agent-native/toolkit/design-system) not forwarding a native ref, which broke every Radix asChild trigger built on them — popovers, tooltips, dropdown menus, and dialogs positioned relative to the button would render off-screen (transform: translate(0px, -200%)) because Radix's Slot had no DOM node to measure. ActionButton/IconButton are now wrapped in forwardRef, and the forwarded ref is merged with the existing elementRef prop so both resolve to the same DOM node — existing consumers that pass elementRef explicitly are unaffected.

    Also fix IconButton dropping a native onClick. IconButtonProps did not
    declare onClick and the default adapter spread incoming props before setting
    its own handler, so a Radix asChild trigger built on IconButton — popover,
    dropdown menu, dialog — never opened at all. IconButton now merges onClick
    with onPress the same way ActionButton already did.