-
-
Notifications
You must be signed in to change notification settings - Fork 969
refactor(Breadcrumb): rename WrapperComponent to Wrapper in BreadcrumbItem #4463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(Breadcrumb): rename WrapperComponent to Wrapper in BreadcrumbItem #4463
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
Deployment failed with the following error: |
|
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. |
…bItem Co-authored-by: simonguo <[email protected]>
|
Deployment failed with the following error: |
simonguo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
274ec8b
into
fix/breadcrumb-item-props-forwarding
…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]>
Addresses naming inconsistency feedback from PR #4450 review. The prop is named
wrapperAsbut the destructured variable wasWrapperComponent, creating unnecessary verbosity.Changes
WrapperComponenttoWrapperas: Componentpattern in same file💡 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.