You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
breaking changePRs with breaking changes. (Don't delete - used for automation)low hanging fruitAn issue, often a bug, that is lower effort and clearly ought to be fixed
The purpose of this task is to add a tooltipProps prop to the EuiCopy component instead of passing tooltip props flat to the component type. This helps to to distinguish tooltip props from the copy functionality props.
It's consistent with other components that consume props to pass to children (e.g. for EuiSuperUpdateButton (code) or EuiButtonGroupButton (code))
Important
Updating the component API will be a breaking change and requires updating implementation usages.
Acceptance criteria
added prop tooltipProps to EuiCopy and updated it's prop type definition
updated usages/examples across EUI docs
tested/verified the API change for usages in Kibana (pre-prepared changes for release upgrade)
Since we need to update tests for this anyway, it is probably worth migrating to do as RTL at the same time, assuming it's a small test file.
Rollout consideration
Note on impact / scope of rollout: If we make it a breaking change, there is usage in Kibana we would need to update, but it should be limited and we can handle that ourselves as part of the upgrade.
ℹ We aligned on the naming for the prop: tooltipProps vs toolTipProps
Both are in use on EUI side but the correct spelling would be without camelCase as it's a single word: tooltipProps. We can't easily update existing usages without adding many breaking changes, but we agreed to use tooltipProps moving forward.
breaking changePRs with breaking changes. (Don't delete - used for automation)low hanging fruitAn issue, often a bug, that is lower effort and clearly ought to be fixed
Activity
[-][EuiCopy] Add `tooltipProps` prop[/-][+][EuiCopy] Add `toolTipProps` prop[/+][-][EuiCopy] Add `toolTipProps` prop[/-][+][EuiCopy] Add `tooltipProps` prop[/+]mgadewoll commentedon May 27, 2025
ℹ We aligned on the naming for the prop:
tooltipPropsvstoolTipPropsBoth are in use on EUI side but the correct spelling would be without camelCase as it's a single word:
tooltipProps. We can't easily update existing usages without adding many breaking changes, but we agreed to usetooltipPropsmoving forward.