Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

Addresses naming inconsistency feedback from PR #4450 review. The prop is named wrapperAs but the destructured variable was WrapperComponent, creating unnecessary verbosity.

Changes

  • Renamed destructured variable from WrapperComponent to Wrapper
  • Shorter, maintains PascalCase convention, aligns with existing as: Component pattern in same file
// Before
const { wrapperAs: WrapperComponent = 'li', ... } = props;
<Box as={WrapperComponent}>...</Box>

// After  
const { wrapperAs: Wrapper = 'li', ... } = props;
<Box as={Wrapper}>...</Box>

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@codesandbox
Copy link

codesandbox bot commented Dec 10, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link

vercel bot commented Dec 10, 2025

Deployment failed with the following error:

Resource is limited - try again in 48 minutes (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/rsuite?upgradeToPro=build-rate-limit

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 10, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@vercel
Copy link

vercel bot commented Dec 10, 2025

Deployment failed with the following error:

Resource is limited - try again in 43 minutes (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/rsuite?upgradeToPro=build-rate-limit

Copilot AI changed the title [WIP] Update implementation of props forwarding in BreadcrumbItem refactor(Breadcrumb): rename WrapperComponent to Wrapper in BreadcrumbItem Dec 10, 2025
Copilot AI requested a review from simonguo December 10, 2025 07:11
Copy link
Member

@simonguo simonguo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simonguo simonguo marked this pull request as ready for review December 10, 2025 08:06
@simonguo simonguo merged commit 274ec8b into fix/breadcrumb-item-props-forwarding Dec 10, 2025
2 of 6 checks passed
@simonguo simonguo deleted the copilot/sub-pr-4450-again branch December 10, 2025 08:07
simonguo added a commit that referenced this pull request Dec 10, 2025
…rumbItem (#4450)

* fix(Breadcrumb): forward props correctly when using as prop in BreadcrumbItem

- Separate BoxProps and component props using extractBoxProps/omitBoxProps
- BoxProps are applied to wrapper element to support layout properties
- Component props (like 'to' for react-router Link) are forwarded to inner element
- Align prop forwarding behavior with NavItem and DropdownItem
- Add test cases for custom component prop forwarding and BoxProps support
- Update composition docs to show direct react-router-dom usage

Fixes #4427

* refactor(Breadcrumb): rename WrapperComponent to Wrapper in BreadcrumbItem (#4463)

* Initial plan

* refactor(Breadcrumb): rename WrapperComponent to Wrapper in BreadcrumbItem

Co-authored-by: simonguo <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: simonguo <[email protected]>

* test: add coverage for active BreadcrumbItem with custom component (#4462)

* Initial plan

* test: add test for active breadcrumb item with custom component

Co-authored-by: simonguo <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: simonguo <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: simonguo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants