TreeView: add as prop to TreeView.Item#7897
Conversation
🦋 Changeset detectedLatest commit: 81d647b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
…rimer/react into liuliu/add-as-to-treeview-item
|
👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/21835 |
Closes https://github.com/github/primer/issues/6495 and closes https://github.com/github/core-ux/issues/2495
Adds support for the
asprop onTreeView.Item, enabling consumers to render the tree item as a different element (e.g. a native<a>or a custom router-link component) while preserving all existing keyboard, focus, and ARIA behavior. This bringsTreeView.Itemin line with other polymorphic Primer components such asBreadcrumbs.ItemandActionList.LinkItem.Changelog
New
Changed
Removed
Rollout strategy
Testing & Reviewing
Merge checklist