An open source design system that's fully customizable and agent ready
TypeScript
fix(AvatarGroup): forward rest props in AvatarGroupOverflow (#3150)
Cindy Zhange3e409f699a9
diff --git a/.changeset/avatar-group-overflow-rest-props.md b/.changeset/avatar-group-overflow-rest-props.mdnew file mode 100644index 0000000000..fa544041b8--- /dev/null+++ b/.changeset/avatar-group-overflow-rest-props.md@@ -0,0 +1,7 @@+---+'@astryxdesign/core': patch+---++[fix] AvatarGroupOverflow now forwards rest props (data-_, aria-_, event handlers, id, role, tabIndex) to the rendered element, matching the behavior of Avatar and AvatarGroup.++@cixzhangdiff --git a/packages/core/src/AvatarGroup/AvatarGroupOverflow.tsx b/packages/core/src/AvatarGroup/AvatarGroupOverflow.tsxindex d5b7f7baff..03fdf7a589 100644--- a/packages/core/src/AvatarGroup/AvatarGroupOverflow.tsx+++ b/packages/core/src/AvatarGroup/AvatarGroupOverflow.tsx@@ -132,6 +132,7 @@ export function AvatarGroupOverflow({xstyle,className,style,+ ...rest}: AvatarGroupOverflowProps): ReactNode {const group = useAvatarGroup();const numericSize = group?.numericSize ?? 36;@@ -147,6 +148,7 @@ export function AvatarGroupOverflow({type="button"onClick={onClick}aria-label={label}+ {...rest}{...mergeProps(themeProps('avatar-group-overflow'),stylex.props(@@ -170,6 +172,7 @@ export function AvatarGroupOverflow({<spanref={ref}aria-label={label}+ {...rest}{...mergeProps(themeProps('avatar-group-overflow'),stylex.props(