Skip to content

Conversation

@GuillaumeKESTEMAN
Copy link
Contributor

Title

Allow passing additional props to ContentItemDuo parent container

Description

This PR enables the ability to pass extra props to the ContentItemDuo component, which are then forwarded to the parent div element.

Main Changes

  • Extended ContentItemDuoProps to include all standard div props using ComponentProps<"div">
  • Spread additional props (containerProps) onto the parent <div> in ContentItemDuoCommon
  • Added a unit test to verify that custom props (e.g., id, title, className) are correctly applied to the parent div

Impacts

  • Increases flexibility for consumers of ContentItemDuo by allowing custom HTML attributes and event handlers on the container
  • No breaking changes expected; existing usages remain compatible

Linked Issue

No linked issue or ticket

Screenshots

N/A

@sonarqubecloud
Copy link

@GuillaumeKESTEMAN GuillaumeKESTEMAN merged commit a0115f6 into main Oct 20, 2025
8 of 11 checks passed
@GuillaumeKESTEMAN GuillaumeKESTEMAN deleted the feature/client/permit-to-pass-props-to-content-item-duo-container branch October 20, 2025 06:51
JLou pushed a commit that referenced this pull request Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants